automatic DPDK test reports
 help / color / mirror / Atom feed
* [dpdk-test-report] |WARNING| pw102551 [PATCH v2 08/26] net/ngbe: support VLAN offload and VLAN filter
       [not found] <20211021095023.18288-9-jiawenwu@trustnetic.com>
@ 2021-10-21  9:52 ` checkpatch
  0 siblings, 0 replies; only message in thread
From: checkpatch @ 2021-10-21  9:52 UTC (permalink / raw)
  To: test-report; +Cc: Jiawen Wu

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

_coding style issues_


CHECK:MACRO_ARG_REUSE: Macro argument reuse 'q' - possible side-effects?
#276: FILE: drivers/net/ngbe/ngbe_ethdev.c:33:
+#define NGBE_SET_HWSTRIP(h, q) do {\
+		uint32_t idx = (q) / (sizeof((h)->bitmap[0]) * NBBY); \
+		uint32_t bit = (q) % (sizeof((h)->bitmap[0]) * NBBY); \
+		(h)->bitmap[idx] |= 1 << bit;\
+	} while (0)

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'q' - possible side-effects?
#282: FILE: drivers/net/ngbe/ngbe_ethdev.c:39:
+#define NGBE_CLEAR_HWSTRIP(h, q) do {\
+		uint32_t idx = (q) / (sizeof((h)->bitmap[0]) * NBBY); \
+		uint32_t bit = (q) % (sizeof((h)->bitmap[0]) * NBBY); \
+		(h)->bitmap[idx] &= ~(1 << bit);\
+	} while (0)

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'q' - possible side-effects?
#288: FILE: drivers/net/ngbe/ngbe_ethdev.c:45:
+#define NGBE_GET_HWSTRIP(h, q, r) do {\
+		uint32_t idx = (q) / (sizeof((h)->bitmap[0]) * NBBY); \
+		uint32_t bit = (q) % (sizeof((h)->bitmap[0]) * NBBY); \
+		(r) = (h)->bitmap[idx] >> bit & 1;\
+	} while (0)

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

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

only message in thread, other threads:[~2021-10-21  9:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20211021095023.18288-9-jiawenwu@trustnetic.com>
2021-10-21  9:52 ` [dpdk-test-report] |WARNING| pw102551 [PATCH v2 08/26] net/ngbe: support VLAN offload and VLAN filter 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).