automatic DPDK test reports
 help / color / mirror / Atom feed
From: checkpatch@dpdk.org
To: test-report@dpdk.org
Cc: Xueming Li <xuemingl@mellanox.com>
Subject: [dpdk-test-report] |WARNING| pw32022 [PATCH RFC v1 4/9] lib/python: add embedded python lib
Date: Fri,  8 Dec 2017 09:24:36 +0100 (CET)	[thread overview]
Message-ID: <20171208082436.7495D1AEE9@dpdk.org> (raw)
In-Reply-To: <20171208082225.44913-5-xuemingl@mellanox.com>

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

_coding style issues_


ERROR:SPACING: need consistent spacing around '*' (ctx:WxV)
#201: FILE: lib/librte_python/rte_python.c:49:
+typedef PyObject *PyPtr;
                  ^

WARNING:TRAILING_SEMICOLON: macros should not use a trailing semicolon
#206: FILE: lib/librte_python/rte_python.c:54:
+#define DBG(o) py_priv_debug(# o, o);

WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#208: FILE: lib/librte_python/rte_python.c:56:
+#define CHK(o, expr)									\
+	do {										\
+		o = (expr);								\
+		if (!o) {								\
+			RTE_LOG(WARNING, PYTHON, "%s = %s: null
", # o, # expr);	\
+			goto err;							\
+		}									\
+	} while (0);

WARNING:DO_WHILE_MACRO_WITH_TRAILING_SEMICOLON: do {} while (0) macros should not be semicolon terminated
#208: FILE: lib/librte_python/rte_python.c:56:
+#define CHK(o, expr)									\
+	do {										\
+		o = (expr);								\
+		if (!o) {								\
+			RTE_LOG(WARNING, PYTHON, "%s = %s: null
", # o, # expr);	\
+			goto err;							\
+		}									\
+	} while (0);

ERROR:SPACING: space required after that ';' (ctx:VxV)
#217: FILE: lib/librte_python/rte_python.c:65:
+#define CHKP(o, expr) do {CHK(o, expr); DBG(o);} while (0);
                                               ^

WARNING:DO_WHILE_MACRO_WITH_TRAILING_SEMICOLON: do {} while (0) macros should not be semicolon terminated
#217: FILE: lib/librte_python/rte_python.c:65:
+#define CHKP(o, expr) do {CHK(o, expr); DBG(o);} while (0);

WARNING:SPACE_BEFORE_TAB: please, no space before tabs
#219: FILE: lib/librte_python/rte_python.c:67:
+#define CHKZ(o, expr) ^I^I^I^I^I^I^I^I^I\$

WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#219: FILE: lib/librte_python/rte_python.c:67:
+#define CHKZ(o, expr) 									\
+	do {										\
+		o = (expr);								\
+		if (o) {								\
+			RTE_LOG(WARNING, PYTHON, "%s = %s: not null
", # o, # expr);	\
+			goto err;							\
+		}									\
+	} while (0);

WARNING:DO_WHILE_MACRO_WITH_TRAILING_SEMICOLON: do {} while (0) macros should not be semicolon terminated
#219: FILE: lib/librte_python/rte_python.c:67:
+#define CHKZ(o, expr) 									\
+	do {										\
+		o = (expr);								\
+		if (o) {								\
+			RTE_LOG(WARNING, PYTHON, "%s = %s: not null
", # o, # expr);	\
+			goto err;							\
+		}									\
+	} while (0);

ERROR:GLOBAL_INITIALISERS: do not initialise globals to 0
#240: FILE: lib/librte_python/rte_python.c:88:
+int rte_python_debug = 0;

ERROR:SPACING: space required before the open parenthesis '('
#266: FILE: lib/librte_python/rte_python.c:114:
+	while(size) {

ERROR:SPACING: space required before the open parenthesis '('
#389: FILE: lib/librte_python/rte_python.c:237:
+	if(!(mbuf = rte_mbuf_raw_alloc(pool))) {

ERROR:ASSIGN_IN_IF: do not use assignment in if condition
#389: FILE: lib/librte_python/rte_python.c:237:
+	if(!(mbuf = rte_mbuf_raw_alloc(pool))) {

ERROR:ASSIGN_IN_IF: do not use assignment in if condition
#435: FILE: lib/librte_python/rte_python.c:283:
+	if ((mbufs = rte_malloc_socket(NULL, sizeof(void *) * size,

ERROR:TRAILING_WHITESPACE: trailing whitespace
#643: FILE: mk/rte.app.mk:104:
+_LDLIBS-$(CONFIG_RTE_LIBRTE_PYTHON)         += -lrte_python -l$(CONFIG_RTE_LIBRTE_PYTHON_VERSION) $

ERROR:MISSING_SIGN_OFF: Missing Signed-off-by: line(s)

total: 9 errors, 7 warnings, 564 lines checked

           reply	other threads:[~2017-12-08  8:24 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <20171208082225.44913-5-xuemingl@mellanox.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=20171208082436.7495D1AEE9@dpdk.org \
    --to=checkpatch@dpdk.org \
    --cc=test-report@dpdk.org \
    --cc=xuemingl@mellanox.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).