automatic DPDK test reports
 help / color / mirror / Atom feed
* [dpdk-test-report] |WARNING| pw58280 [PATCH v2 30/30] net/dpaa2: add soft parser driver
       [not found] <20190829102737.13267-31-sachin.saxena@nxp.com>
@ 2019-08-29 10:46 ` checkpatch
  0 siblings, 0 replies; only message in thread
From: checkpatch @ 2019-08-29 10:46 UTC (permalink / raw)
  To: test-report; +Cc: Sachin Saxena

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

_coding style issues_


CHECK:MACRO_ARG_REUSE: Macro argument reuse 'pr' - possible side-effects?
#260: FILE: drivers/net/dpaa2/dpaa2_sparser.c:148:
+#define SWAP_WORD(pr)						\
+do {								\
+	for (int i = 0; i < 4 ; i++) {				\
+		pr[i] = pr[i] ^ pr[6 - i + 1];			\
+		pr[6 - i + 1] = pr[6 - i + 1] ^ pr[i];		\
+		pr[i] = pr[i] ^ pr[6 - i + 1];			\
+	}							\
+} while (0)

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'priv' - possible side-effects?
#407: FILE: drivers/net/dpaa2/dpaa2_sparser.h:20:
+#define WRIOP_SS_INITIALIZER(priv)				\
+do {								\
+	/* Base offset of parse profile memory in WRIOP */	\
+	(priv)->ss_offset = 0x20;				\
+	(priv)->ss_iova	= (size_t)NULL;			\
+	(priv)->ss_param_iova = (size_t)NULL;			\
+} while (0)

CHECK:MACRO_ARG_REUSE: Macro argument reuse '_mask' - possible side-effects?
#586: FILE: drivers/net/dpaa2/dpaa2_sparser.h:199:
+#define IS_ONE_BIT_FIELD(_mask)                 \
+(!((_mask) & ((_mask) - 1)) || (_mask == 1))

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

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

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

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20190829102737.13267-31-sachin.saxena@nxp.com>
2019-08-29 10:46 ` [dpdk-test-report] |WARNING| pw58280 [PATCH v2 30/30] net/dpaa2: add soft parser driver 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).