|WARNING| pw135968 [PATCH] common/sfc: replace out of bounds condition with static_assert

checkpatch at dpdk.org checkpatch at dpdk.org
Thu Jan 18 21:20:05 CET 2024


Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/135968

_coding style issues_


WARNING:SINGLE_STATEMENT_DO_WHILE_MACRO: Single statement macros should not use a do {} while (0) loop
#104: FILE: drivers/common/sfc_efx/base/efx.h:20:
+#define	EFX_STATIC_ASSERT(_cond) \
+	do { static_assert((_cond), "assert failed" #_cond); } while (0)

total: 0 errors, 1 warnings, 10 lines checked


More information about the test-report mailing list