automatic DPDK test reports
 help / color / mirror / Atom feed
* [dpdk-test-report] |WARNING| pw57942 [PATCH 41/63] net/ice/base: move and add some help function and macros
       [not found] <20190826105105.19121-42-qi.z.zhang@intel.com>
@ 2019-08-26 10:55 ` checkpatch
  0 siblings, 0 replies; only message in thread
From: checkpatch @ 2019-08-26 10:55 UTC (permalink / raw)
  To: test-report; +Cc: Qi Zhang

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

_coding style issues_


CHECK:MACRO_ARG_REUSE: Macro argument reuse 'b' - possible side-effects?
#98: FILE: drivers/net/ice/base/ice_type.h:33:
+#define ROUND_UP(a, b)	((b) * DIVIDE_AND_ROUND_UP((a), (b)))

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'addr1' - possible side-effects?
#138: FILE: drivers/net/ice/base/ice_type.h:141:
+#define IS_ETHER_ADDR_EQUAL(addr1, addr2) \
+	(((bool)((((u16 *)(addr1))[0] == ((u16 *)(addr2))[0]))) && \
+	 ((bool)((((u16 *)(addr1))[1] == ((u16 *)(addr2))[1]))) && \
+	 ((bool)((((u16 *)(addr1))[2] == ((u16 *)(addr2))[2]))))

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'addr2' - possible side-effects?
#138: FILE: drivers/net/ice/base/ice_type.h:141:
+#define IS_ETHER_ADDR_EQUAL(addr1, addr2) \
+	(((bool)((((u16 *)(addr1))[0] == ((u16 *)(addr2))[0]))) && \
+	 ((bool)((((u16 *)(addr1))[1] == ((u16 *)(addr2))[1]))) && \
+	 ((bool)((((u16 *)(addr1))[2] == ((u16 *)(addr2))[2]))))

total: 0 errors, 0 warnings, 3 checks, 93 lines checked

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

only message in thread, other threads:[~2019-08-26 10:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20190826105105.19121-42-qi.z.zhang@intel.com>
2019-08-26 10:55 ` [dpdk-test-report] |WARNING| pw57942 [PATCH 41/63] net/ice/base: move and add some help function and macros 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).