|WARNING| pw157141 [PATCH v4 3/4] net/intel: add config queue support to vCPF

checkpatch at dpdk.org checkpatch at dpdk.org
Tue Sep 30 15:57:07 CEST 2025


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

_coding style issues_


CHECK:MACRO_ARG_REUSE: Macro argument reuse 'ptr' - possible side-effects?
#823: FILE: drivers/net/intel/idpf/base/idpf_osdep.h:364:
+#define idpf_struct_size(ptr, field, num) \
+	(sizeof(*(ptr)) + sizeof(*(ptr)->field) * (num))

CHECK:MACRO_ARG_PRECEDENCE: Macro argument 'field' may be better as '(field)' to avoid precedence issues
#823: FILE: drivers/net/intel/idpf/base/idpf_osdep.h:364:
+#define idpf_struct_size(ptr, field, num) \
+	(sizeof(*(ptr)) + sizeof(*(ptr)->field) * (num))

total: 0 errors, 0 warnings, 2 checks, 752 lines checked


More information about the test-report mailing list