[dpdk-test-report] |WARNING| pw66995 [PATCH v2 07/36] net/ice/base: use struct size helper
checkpatch at dpdk.org
checkpatch at dpdk.org
Mon Mar 23 08:17:26 CET 2020
Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/66995
_coding style issues_
CHECK:MACRO_ARG_REUSE: Macro argument reuse 'ptr' - possible side-effects?
#141: 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
#141: 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