automatic DPDK test reports
 help / color / mirror / Atom feed
* [dpdk-test-report] |WARNING| pw66424 [PATCH 07/28] net/ice/base: use struct size helper
       [not found] <20200309114357.31800-8-qi.z.zhang@intel.com>
@ 2020-03-09 11:42 ` checkpatch
  0 siblings, 0 replies; only message in thread
From: checkpatch @ 2020-03-09 11:42 UTC (permalink / raw)
  To: test-report; +Cc: Qi Zhang

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-03-09 11:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20200309114357.31800-8-qi.z.zhang@intel.com>
2020-03-09 11:42 ` [dpdk-test-report] |WARNING| pw66424 [PATCH 07/28] 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).