* |WARNING| pw105246 [PATCH v1 04/25] net/spnic: introduce event queue
[not found] <cff4c053206f3ddbc729cb59286e05bbd4a28aec.1639636621.git.songyl@ramaxel.com>
@ 2021-12-18 2:54 ` checkpatch
0 siblings, 0 replies; only message in thread
From: checkpatch @ 2021-12-18 2:54 UTC (permalink / raw)
To: test-report; +Cc: Yanling Song
Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/105246
_coding style issues_
CHECK:MACRO_ARG_REUSE: Macro argument reuse 'eq' - possible side-effects?
#179: 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?
#181: 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?
#181: 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?
#187: 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?
#187: 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?
#194: 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?
#211: 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-18 2:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <cff4c053206f3ddbc729cb59286e05bbd4a28aec.1639636621.git.songyl@ramaxel.com>
2021-12-18 2:54 ` |WARNING| pw105246 [PATCH v1 04/25] 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).