automatic DPDK test reports
 help / color / mirror / Atom feed
From: checkpatch@dpdk.org
To: test-report@dpdk.org
Cc: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
Subject: [dpdk-test-report] |WARNING| pw71189 [PATCH v8 08/11] eal/windows: replace sys/queue.h with a complete one from FreeBSD
Date: Wed, 10 Jun 2020 16:29:49 +0200 (CEST)
Message-ID: <20200610142949.A4E391BE9B@dpdk.org> (raw)
In-Reply-To: <20200610142730.31376-9-dmitry.kozliuk@gmail.com>

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

_coding style issues_


WARNING:TRAILING_SEMICOLON: macros should not use a trailing semicolon
#235: FILE: lib/librte_eal/windows/include/sys/queue.h:103:
+#define	TRACEBUF	struct qm_trace trace;

ERROR:SPACING: space prohibited before that ',' (ctx:WxE)
#236: FILE: lib/librte_eal/windows/include/sys/queue.h:104:
+#define	TRACEBUF_INITIALIZER	{ __LINE__, 0, __FILE__, NULL } ,
        	                    	                                ^

ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#236: FILE: lib/librte_eal/windows/include/sys/queue.h:104:
+#define	TRACEBUF_INITIALIZER	{ __LINE__, 0, __FILE__, NULL } ,

ERROR:SPACING: space required after that ';' (ctx:VxV)
#261: FILE: lib/librte_eal/windows/include/sys/queue.h:129:
+#define	TRASHIT(x)		do {(x) = (void *)-1;} while (0)
        	          		                    ^

WARNING:SINGLE_STATEMENT_DO_WHILE_MACRO: Single statement macros should not use a do {} while (0) loop
#261: FILE: lib/librte_eal/windows/include/sys/queue.h:129:
+#define	TRASHIT(x)		do {(x) = (void *)-1;} while (0)

ERROR:SPACING: need consistent spacing around '*' (ctx:WxV)
#317: FILE: lib/librte_eal/windows/include/sys/queue.h:186:
+	QUEUE_TYPEOF(type) *curelm = SLIST_FIRST(head1);		\
 	                   ^

ERROR:ASSIGN_IN_IF: do not use assignment in if condition
#319: FILE: lib/librte_eal/windows/include/sys/queue.h:188:
+		if ((SLIST_FIRST(head1) = SLIST_FIRST(head2)) != NULL)	\

WARNING:SINGLE_STATEMENT_DO_WHILE_MACRO: Single statement macros should not use a do {} while (0) loop
#358: FILE: lib/librte_eal/windows/include/sys/queue.h:227:
+#define	SLIST_INIT(head) do {						\
+	SLIST_FIRST((head)) = NULL;					\
+} while (0)

ERROR:SPACING: need consistent spacing around '*' (ctx:WxV)
#380: FILE: lib/librte_eal/windows/include/sys/queue.h:249:
+		QUEUE_TYPEOF(type) *curelm = SLIST_FIRST(head);		\
 		                   ^

WARNING:SINGLE_STATEMENT_DO_WHILE_MACRO: Single statement macros should not use a do {} while (0) loop
#388: FILE: lib/librte_eal/windows/include/sys/queue.h:257:
+#define SLIST_REMOVE_AFTER(elm, field) do {				\
+	SLIST_NEXT(elm, field) =					\
+	    SLIST_NEXT(SLIST_NEXT(elm, field), field);			\
+} while (0)

WARNING:SINGLE_STATEMENT_DO_WHILE_MACRO: Single statement macros should not use a do {} while (0) loop
#393: FILE: lib/librte_eal/windows/include/sys/queue.h:262:
+#define	SLIST_REMOVE_HEAD(head, field) do {				\
+	SLIST_FIRST((head)) = SLIST_NEXT(SLIST_FIRST((head)), field);	\
+} while (0)

ERROR:SPACING: need consistent spacing around '*' (ctx:WxV)
#404: FILE: lib/librte_eal/windows/include/sys/queue.h:273:
+	QUEUE_TYPEOF(type) *swap_first = SLIST_FIRST(head1);		\
 	                   ^

ERROR:SPACING: space required before the open parenthesis '('
#453: FILE: lib/librte_eal/windows/include/sys/queue.h:322:
+	for((var) = STAILQ_FIRST((head));				\

ERROR:ASSIGN_IN_IF: do not use assignment in if condition
#478: FILE: lib/librte_eal/windows/include/sys/queue.h:347:
+	if ((STAILQ_NEXT((elm), field) = STAILQ_NEXT((tqelm), field)) == NULL)\

ERROR:ASSIGN_IN_IF: do not use assignment in if condition
#484: FILE: lib/librte_eal/windows/include/sys/queue.h:353:
+	if ((STAILQ_NEXT((elm), field) = STAILQ_FIRST((head))) == NULL)	\

ERROR:SPACING: need consistent spacing around '*' (ctx:WxV)
#508: FILE: lib/librte_eal/windows/include/sys/queue.h:377:
+		QUEUE_TYPEOF(type) *curelm = STAILQ_FIRST(head);	\
 		                   ^

ERROR:ASSIGN_IN_IF: do not use assignment in if condition
#517: FILE: lib/librte_eal/windows/include/sys/queue.h:386:
+	if ((STAILQ_NEXT(elm, field) =					\

ERROR:ASSIGN_IN_IF: do not use assignment in if condition
#523: FILE: lib/librte_eal/windows/include/sys/queue.h:392:
+	if ((STAILQ_FIRST((head)) =					\

ERROR:SPACING: need consistent spacing around '*' (ctx:WxV)
#529: FILE: lib/librte_eal/windows/include/sys/queue.h:398:
+	QUEUE_TYPEOF(type) *swap_first = STAILQ_FIRST(head1);		\
 	                   ^

ERROR:SPACING: need consistent spacing around '*' (ctx:WxO)
#530: FILE: lib/librte_eal/windows/include/sys/queue.h:399:
+	QUEUE_TYPEOF(type) **swap_last = (head1)->stqh_last;		\
 	                   ^

ERROR:CODE_INDENT: code indent should use tabs where possible
#598: FILE: lib/librte_eal/windows/include/sys/queue.h:467:
+^I     ^Ipanic("Bad link elm %p next->prev != elm", (elm));^I\$

WARNING:SPACE_BEFORE_TAB: please, no space before tabs
#598: FILE: lib/librte_eal/windows/include/sys/queue.h:467:
+^I     ^Ipanic("Bad link elm %p next->prev != elm", (elm));^I\$

ERROR:SPACING: need consistent spacing around '*' (ctx:WxV)
#617: FILE: lib/librte_eal/windows/include/sys/queue.h:486:
+	QUEUE_TYPEOF(type) *curelm = LIST_FIRST(head1);			      \
 	                   ^

ERROR:ASSIGN_IN_IF: do not use assignment in if condition
#619: FILE: lib/librte_eal/windows/include/sys/queue.h:488:
+		if ((LIST_FIRST(head1) = LIST_FIRST(head2)) != NULL) {	      \

WARNING:SINGLE_STATEMENT_DO_WHILE_MACRO: Single statement macros should not use a do {} while (0) loop
#657: FILE: lib/librte_eal/windows/include/sys/queue.h:526:
+#define	LIST_INIT(head) do {						\
+	LIST_FIRST((head)) = NULL;					\
+} while (0)

ERROR:ASSIGN_IN_IF: do not use assignment in if condition
#663: FILE: lib/librte_eal/windows/include/sys/queue.h:532:
+	if ((LIST_NEXT((elm), field) = LIST_NEXT((listelm), field)) != NULL)\

ERROR:ASSIGN_IN_IF: do not use assignment in if condition
#680: FILE: lib/librte_eal/windows/include/sys/queue.h:549:
+	if ((LIST_NEXT((elm), field) = LIST_FIRST((head))) != NULL)	\

WARNING:SPACE_BEFORE_TAB: please, no space before tabs
#699: FILE: lib/librte_eal/windows/include/sys/queue.h:568:
+^I^ILIST_NEXT((elm), field)->field.le_prev = ^I^I\$

ERROR:SPACING: need consistent spacing around '*' (ctx:WxV)
#707: FILE: lib/librte_eal/windows/include/sys/queue.h:576:
+	QUEUE_TYPEOF(type) *swap_tmp = LIST_FIRST(head1);		\
 	                   ^

ERROR:ASSIGN_IN_IF: do not use assignment in if condition
#710: FILE: lib/librte_eal/windows/include/sys/queue.h:579:
+	if ((swap_tmp = LIST_FIRST((head1))) != NULL)			\

ERROR:ASSIGN_IN_IF: do not use assignment in if condition
#712: FILE: lib/librte_eal/windows/include/sys/queue.h:581:
+	if ((swap_tmp = LIST_FIRST((head2))) != NULL)			\

ERROR:CODE_INDENT: code indent should use tabs where possible
#744: FILE: lib/librte_eal/windows/include/sys/queue.h:643:
+^I    ^Ipanic("Bad tailq NEXT(%p->tqh_last) != NULL", (head)); ^I\$

WARNING:SPACE_BEFORE_TAB: please, no space before tabs
#744: FILE: lib/librte_eal/windows/include/sys/queue.h:643:
+^I    ^Ipanic("Bad tailq NEXT(%p->tqh_last) != NULL", (head)); ^I\$

ERROR:ASSIGN_IN_IF: do not use assignment in if condition
#785: FILE: lib/librte_eal/windows/include/sys/queue.h:738:
+	if ((TAILQ_NEXT((elm), field) = TAILQ_NEXT((listelm), field)) != NULL)\

WARNING:SPACE_BEFORE_TAB: please, no space before tabs
#786: FILE: lib/librte_eal/windows/include/sys/queue.h:739:
+^I^ITAILQ_NEXT((elm), field)->field.tqe_prev = ^I^I\$

ERROR:ASSIGN_IN_IF: do not use assignment in if condition
#796: FILE: lib/librte_eal/windows/include/sys/queue.h:763:
+	if ((TAILQ_NEXT((elm), field) = TAILQ_FIRST((head))) != NULL)	\

WARNING:LONG_LINE: line over 90 characters
#806: FILE: lib/librte_eal/windows/include/sys/queue.h:795:
+    (TAILQ_EMPTY(head) ? NULL : __containerof((head)->tqh_last, QUEUE_TYPEOF(type), field.tqe_next))

WARNING:LEADING_SPACE: please, no spaces at the start of a line
#806: FILE: lib/librte_eal/windows/include/sys/queue.h:795:
+    (TAILQ_EMPTY(head) ? NULL : __containerof((head)->tqh_last, QUEUE_TYPEOF(type), field.tqe_next))$

WARNING:LEADING_SPACE: please, no spaces at the start of a line
#814: FILE: lib/librte_eal/windows/include/sys/queue.h:803:
+    ((elm)->field.tqe_prev == &(head)->tqh_first ? NULL :^I^I\$

WARNING:LEADING_SPACE: please, no spaces at the start of a line
#815: FILE: lib/librte_eal/windows/include/sys/queue.h:804:
+     __containerof((elm)->field.tqe_prev, QUEUE_TYPEOF(type), field.tqe_next))$

WARNING:SPACE_BEFORE_TAB: please, no space before tabs
#824: FILE: lib/librte_eal/windows/include/sys/queue.h:812:
+^I^ITAILQ_NEXT((elm), field)->field.tqe_prev = ^I^I\$

ERROR:SPACING: need consistent spacing around '*' (ctx:WxV)
#834: FILE: lib/librte_eal/windows/include/sys/queue.h:825:
+	QUEUE_TYPEOF(type) *swap_first = (head1)->tqh_first;		\
 	                   ^

ERROR:SPACING: need consistent spacing around '*' (ctx:WxO)
#835: FILE: lib/librte_eal/windows/include/sys/queue.h:826:
+	QUEUE_TYPEOF(type) **swap_last = (head1)->tqh_last;		\
 	                   ^

ERROR:ASSIGN_IN_IF: do not use assignment in if condition
#842: FILE: lib/librte_eal/windows/include/sys/queue.h:831:
+	if ((swap_first = (head1)->tqh_first) != NULL)			\

ERROR:ASSIGN_IN_IF: do not use assignment in if condition
#848: FILE: lib/librte_eal/windows/include/sys/queue.h:835:
+	if ((swap_first = (head2)->tqh_first) != NULL)			\

total: 30 errors, 15 warnings, 753 lines checked

           reply	other threads:[~2020-06-10 14:29 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <20200610142730.31376-9-dmitry.kozliuk@gmail.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=20200610142949.A4E391BE9B@dpdk.org \
    --to=checkpatch@dpdk.org \
    --cc=dmitry.kozliuk@gmail.com \
    --cc=test-report@dpdk.org \
    /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

automatic DPDK test reports

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.dpdk.org/test-report/0 test-report/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 test-report test-report/ https://inbox.dpdk.org/test-report \
		test-report@dpdk.org
	public-inbox-index test-report

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.test-report


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git