|WARNING| pw131484 [PATCH v3 09/27] net/nfp: standard the blank character

checkpatch at dpdk.org checkpatch at dpdk.org
Fri Sep 15 11:19:18 CEST 2023


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

_coding style issues_


CHECK:MACRO_ARG_REUSE: Macro argument reuse 'model' - possible side-effects?
#194: FILE: drivers/net/nfp/nfpcore/nfp_cpp.h:284:
+#define NFP_CPP_MODEL_IS_6000(model)                         \
 		((NFP_CPP_MODEL_CHIP_of(model) >= 0x3800) && \
 		(NFP_CPP_MODEL_CHIP_of(model) < 0x7000))

ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#1027: FILE: drivers/net/nfp/nfpcore/nfp_resource.c:46:
+#define NFP_RESOURCE_TBL_ENTRIES    (int)(NFP_RESOURCE_TBL_SIZE /        \
+					sizeof(struct nfp_resource_entry))

total: 1 errors, 0 warnings, 1 checks, 811 lines checked


More information about the test-report mailing list