[dpdk-test-report] |WARNING| pw66424 [PATCH 07/28] net/ice/base: use struct size helper

checkpatch at dpdk.org checkpatch at dpdk.org
Mon Mar 9 12:42:09 CET 2020


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

_coding style issues_


CHECK:MACRO_ARG_REUSE: Macro argument reuse 'ptr' - possible side-effects?
#135: FILE: drivers/net/ice/base/ice_type.h:37:
+#define ice_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
#135: FILE: drivers/net/ice/base/ice_type.h:37:
+#define ice_struct_size(ptr, field, num) \
+	(sizeof(*(ptr)) + sizeof(*(ptr)->field) * (num))

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


More information about the test-report mailing list