* [dpdk-test-report] |WARNING| pw66995 [PATCH v2 07/36] net/ice/base: use struct size helper
[not found] <20200323071759.13075-8-qi.z.zhang@intel.com>
@ 2020-03-23 7:17 ` checkpatch
0 siblings, 0 replies; only message in thread
From: checkpatch @ 2020-03-23 7:17 UTC (permalink / raw)
To: test-report; +Cc: Qi Zhang
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-03-23 7:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20200323071759.13075-8-qi.z.zhang@intel.com>
2020-03-23 7:17 ` [dpdk-test-report] |WARNING| pw66995 [PATCH v2 07/36] net/ice/base: use struct size helper checkpatch
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).