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

checkpatch at dpdk.org checkpatch at dpdk.org
Mon Sep 22 16:09:37 CEST 2025


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

_coding style issues_


CHECK:MACRO_ARG_REUSE: Macro argument reuse 'ptr' - possible side-effects?
#814: 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
#814: 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, 750 lines checked


More information about the test-report mailing list