automatic DPDK test reports
 help / color / mirror / Atom feed
* |WARNING| pw105507 [PATCH v6 04/26] net/spnic: introduce event queue
       [not found] <794ee9559cb78eb06ced5bb86d48700398fdbc39.1640838702.git.songyl@ramaxel.com>
@ 2021-12-30  6:11 ` checkpatch
  0 siblings, 0 replies; only message in thread
From: checkpatch @ 2021-12-30  6:11 UTC (permalink / raw)
  To: test-report; +Cc: Yanling Song

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

_coding style issues_


CHECK:MACRO_ARG_REUSE: Macro argument reuse 'eq' - possible side-effects?
#180: FILE: drivers/net/spnic/base/spnic_eqs.c:86:
+#define EQ_CONS_IDX(eq)		((eq)->cons_idx | \
+				((u32)(eq)->wrapped << EQ_WRAPPED_SHIFT))

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'eq' - possible side-effects?
#182: FILE: drivers/net/spnic/base/spnic_eqs.c:88:
+#define GET_EQ_NUM_PAGES(eq, size)	\
+		((u16)(RTE_ALIGN((u32)((eq)->eq_len * (eq)->elem_size), \
+		(size)) / (size)))

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'size' - possible side-effects?
#182: FILE: drivers/net/spnic/base/spnic_eqs.c:88:
+#define GET_EQ_NUM_PAGES(eq, size)	\
+		((u16)(RTE_ALIGN((u32)((eq)->eq_len * (eq)->elem_size), \
+		(size)) / (size)))

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'eq' - possible side-effects?
#188: FILE: drivers/net/spnic/base/spnic_eqs.c:94:
+#define GET_EQ_ELEMENT(eq, idx)		\
+		(((u8 *)(eq)->virt_addr[(idx) / (eq)->num_elem_in_pg]) + \
+		(u32)(((idx) & ((eq)->num_elem_in_pg - 1)) * (eq)->elem_size))

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'idx' - possible side-effects?
#188: FILE: drivers/net/spnic/base/spnic_eqs.c:94:
+#define GET_EQ_ELEMENT(eq, idx)		\
+		(((u8 *)(eq)->virt_addr[(idx) / (eq)->num_elem_in_pg]) + \
+		(u32)(((idx) & ((eq)->num_elem_in_pg - 1)) * (eq)->elem_size))

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'eq' - possible side-effects?
#195: FILE: drivers/net/spnic/base/spnic_eqs.c:101:
+#define GET_CURR_AEQ_ELEM(eq)		GET_AEQ_ELEM((eq), (eq)->cons_idx)

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'eq' - possible side-effects?
#212: FILE: drivers/net/spnic/base/spnic_eqs.c:118:
+#define aeq_to_aeqs(eq) \
+		container_of((eq) - (eq)->q_id, struct spnic_aeqs, aeq[0])

total: 0 errors, 0 warnings, 7 checks, 874 lines checked

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

only message in thread, other threads:[~2021-12-30  6:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <794ee9559cb78eb06ced5bb86d48700398fdbc39.1640838702.git.songyl@ramaxel.com>
2021-12-30  6:11 ` |WARNING| pw105507 [PATCH v6 04/26] net/spnic: introduce event queue 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).