[dpdk-test-report] |WARNING| pw83500 [RFC v2 5/6] net/ixgbe: define the mirror filter parser

checkpatch at dpdk.org checkpatch at dpdk.org
Tue Nov 3 09:31:17 CET 2020


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

_coding style issues_


CHECK:MACRO_ARG_REUSE: Macro argument reuse 'act' - possible side-effects?
#82: FILE: drivers/net/ixgbe/ixgbe_flow.c:52:
+#define NEXT_ITEM_OF_ACTION(act, actions, index)			\
+	do {								\
+		act = (actions) + (index);				\
+		while (act->type == RTE_FLOW_ACTION_TYPE_VOID) {	\
+			(index)++;					\
+			act = (actions) + (index);			\
+		}							\
+	} while (0)

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'actions' - possible side-effects?
#82: FILE: drivers/net/ixgbe/ixgbe_flow.c:52:
+#define NEXT_ITEM_OF_ACTION(act, actions, index)			\
+	do {								\
+		act = (actions) + (index);				\
+		while (act->type == RTE_FLOW_ACTION_TYPE_VOID) {	\
+			(index)++;					\
+			act = (actions) + (index);			\
+		}							\
+	} while (0)

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'index' - possible side-effects?
#82: FILE: drivers/net/ixgbe/ixgbe_flow.c:52:
+#define NEXT_ITEM_OF_ACTION(act, actions, index)			\
+	do {								\
+		act = (actions) + (index);				\
+		while (act->type == RTE_FLOW_ACTION_TYPE_VOID) {	\
+			(index)++;					\
+			act = (actions) + (index);			\
+		}							\
+	} while (0)

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'vlan_item' - possible side-effects?
#91: FILE: drivers/net/ixgbe/ixgbe_flow.c:61:
+#define GET_VLAN_ID_FROM_TCI(vlan_item, default_vid) \
+	((vlan_item) ? ntohs((vlan_item)->tci) & 0x0fff : (default_vid))

total: 0 errors, 0 warnings, 4 checks, 269 lines checked


More information about the test-report mailing list