From: checkpatch@dpdk.org
To: test-report@dpdk.org
Cc: Wei Zhao <wei.zhao1@intel.com>
Subject: [dpdk-test-report] |WARNING| pw18723 [PATCH v2 11/18] net/ixgbe: parse n-tuple filter
Date: Fri, 30 Dec 2016 08:59:00 +0100 (CET) [thread overview]
Message-ID: <20161230075900.77ED4F92F@dpdk.org> (raw)
In-Reply-To: <1483084390-53159-12-git-send-email-wei.zhao1@intel.com>
Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/18723
_coding style issues_
CHECK:MACRO_ARG_REUSE: Macro argument reuse 'item' - possible side-effects?
#106: FILE: drivers/net/ixgbe/ixgbe_ethdev.c:8103:
+#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?
#106: FILE: drivers/net/ixgbe/ixgbe_ethdev.c:8103:
+#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
#106: FILE: drivers/net/ixgbe/ixgbe_ethdev.c:8103:
+#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?
#106: FILE: drivers/net/ixgbe/ixgbe_ethdev.c:8103:
+#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
#106: FILE: drivers/net/ixgbe/ixgbe_ethdev.c:8103:
+#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?
#115: FILE: drivers/net/ixgbe/ixgbe_ethdev.c:8112:
+#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?
#115: FILE: drivers/net/ixgbe/ixgbe_ethdev.c:8112:
+#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
#115: FILE: drivers/net/ixgbe/ixgbe_ethdev.c:8112:
+#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?
#115: FILE: drivers/net/ixgbe/ixgbe_ethdev.c:8112:
+#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
#115: FILE: drivers/net/ixgbe/ixgbe_ethdev.c:8112:
+#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 '}'
#181: FILE: drivers/net/ixgbe/ixgbe_ethdev.c:8178:
+
+ }
CHECK:BRACES: Blank lines aren't necessary before a close brace '}'
#214: FILE: drivers/net/ixgbe/ixgbe_ethdev.c:8211:
+
+ }
WARNING:SUSPECT_CODE_INDENT: suspect code indent for conditional statements (8, 24)
#221: FILE: drivers/net/ixgbe/ixgbe_ethdev.c:8218:
+ if (ipv4_mask->hdr.version_ihl ||
[...]
+ rte_flow_error_set(error,
CHECK:BRACES: Blank lines aren't necessary before a close brace '}'
#270: FILE: drivers/net/ixgbe/ixgbe_ethdev.c:8267:
+
+ }
total: 0 errors, 1 warnings, 13 checks, 443 lines checked
parent reply other threads:[~2016-12-30 7:59 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <1483084390-53159-12-git-send-email-wei.zhao1@intel.com>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20161230075900.77ED4F92F@dpdk.org \
--to=checkpatch@dpdk.org \
--cc=test-report@dpdk.org \
--cc=wei.zhao1@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).