* [dpdk-test-report] |WARNING| pw19253 [PATCH v5 11/18] net/ixgbe: parse n-tuple filter
[not found] <1484212665-1635-12-git-send-email-wei.zhao1@intel.com>
@ 2017-01-12 9:27 ` checkpatch
0 siblings, 0 replies; only message in thread
From: checkpatch @ 2017-01-12 9:27 UTC (permalink / raw)
To: test-report; +Cc: Wei Zhao
Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/19253
_coding style issues_
CHECK:MACRO_ARG_REUSE: Macro argument reuse 'item' - possible side-effects?
#89: FILE: drivers/net/ixgbe/ixgbe_flow.c:109:
+#define NEXT_ITEM_OF_PATTERN(item, pattern, index)\
+ do { \
+ item = pattern + index;\
+ while (item->type == RTE_FLOW_ITEM_TYPE_VOID) {\
+ index++; \
+ item = pattern + index; \
+ } \
+ } while (0)
CHECK:MACRO_ARG_REUSE: Macro argument reuse 'pattern' - possible side-effects?
#89: FILE: drivers/net/ixgbe/ixgbe_flow.c:109:
+#define NEXT_ITEM_OF_PATTERN(item, pattern, index)\
+ do { \
+ item = pattern + index;\
+ while (item->type == RTE_FLOW_ITEM_TYPE_VOID) {\
+ index++; \
+ item = pattern + index; \
+ } \
+ } while (0)
CHECK:MACRO_ARG_PRECEDENCE: Macro argument 'pattern' may be better as '(pattern)' to avoid precedence issues
#89: FILE: drivers/net/ixgbe/ixgbe_flow.c:109:
+#define NEXT_ITEM_OF_PATTERN(item, pattern, index)\
+ do { \
+ item = pattern + index;\
+ while (item->type == RTE_FLOW_ITEM_TYPE_VOID) {\
+ index++; \
+ item = pattern + index; \
+ } \
+ } while (0)
CHECK:MACRO_ARG_REUSE: Macro argument reuse 'index' - possible side-effects?
#89: FILE: drivers/net/ixgbe/ixgbe_flow.c:109:
+#define NEXT_ITEM_OF_PATTERN(item, pattern, index)\
+ do { \
+ item = pattern + index;\
+ while (item->type == RTE_FLOW_ITEM_TYPE_VOID) {\
+ index++; \
+ item = pattern + index; \
+ } \
+ } while (0)
CHECK:MACRO_ARG_PRECEDENCE: Macro argument 'index' may be better as '(index)' to avoid precedence issues
#89: FILE: drivers/net/ixgbe/ixgbe_flow.c:109:
+#define NEXT_ITEM_OF_PATTERN(item, pattern, index)\
+ do { \
+ item = pattern + index;\
+ while (item->type == RTE_FLOW_ITEM_TYPE_VOID) {\
+ index++; \
+ item = pattern + index; \
+ } \
+ } while (0)
CHECK:MACRO_ARG_REUSE: Macro argument reuse 'act' - possible side-effects?
#98: FILE: drivers/net/ixgbe/ixgbe_flow.c:118:
+#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?
#98: FILE: drivers/net/ixgbe/ixgbe_flow.c:118:
+#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_PRECEDENCE: Macro argument 'actions' may be better as '(actions)' to avoid precedence issues
#98: FILE: drivers/net/ixgbe/ixgbe_flow.c:118:
+#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?
#98: FILE: drivers/net/ixgbe/ixgbe_flow.c:118:
+#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_PRECEDENCE: Macro argument 'index' may be better as '(index)' to avoid precedence issues
#98: FILE: drivers/net/ixgbe/ixgbe_flow.c:118:
+#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:BRACES: Blank lines aren't necessary before a close brace '}'
#187: FILE: drivers/net/ixgbe/ixgbe_flow.c:207:
+
+ }
WARNING:TABSTOP: Statements should start on a tabstop
#202: FILE: drivers/net/ixgbe/ixgbe_flow.c:222:
+ return -rte_errno;
CHECK:BRACES: Blank lines aren't necessary before a close brace '}'
#220: FILE: drivers/net/ixgbe/ixgbe_flow.c:240:
+
+ }
WARNING:SUSPECT_CODE_INDENT: suspect code indent for conditional statements (8, 24)
#227: FILE: drivers/net/ixgbe/ixgbe_flow.c:247:
+ if (ipv4_mask->hdr.version_ihl ||
[...]
+ rte_flow_error_set(error,
CHECK:BRACES: Blank lines aren't necessary before a close brace '}'
#278: FILE: drivers/net/ixgbe/ixgbe_flow.c:298:
+
+ }
WARNING:SUSPECT_CODE_INDENT: suspect code indent for conditional statements (8, 12)
#411: FILE: drivers/net/ixgbe/ixgbe_flow.c:431:
+ if (attr->priority < IXGBE_MIN_N_TUPLE_PRIO ||
[...]
+ filter->priority = 1;
total: 0 errors, 3 warnings, 13 checks, 454 lines checked
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-01-12 9:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <1484212665-1635-12-git-send-email-wei.zhao1@intel.com>
2017-01-12 9:27 ` [dpdk-test-report] |WARNING| pw19253 [PATCH v5 11/18] net/ixgbe: parse n-tuple 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).