automatic DPDK test reports
 help / color / mirror / Atom feed
From: checkpatch@dpdk.org
To: test-report@dpdk.org
Cc: <jerinj@marvell.com>
Subject: [dpdk-test-report] |WARNING| pw65436 [RFC PATCH 5/5] example/l3fwd_graph: l3fwd using graph architecture
Date: Fri, 31 Jan 2020 18:04:56 +0100 (CET)	[thread overview]
Message-ID: <20200131170456.BFED91C12D@dpdk.org> (raw)
In-Reply-To: <20200131170201.3236153-6-jerinj@marvell.com>

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

_coding style issues_


ERROR:TRAILING_WHITESPACE: trailing whitespace
#138: FILE: examples/l3fwd-graph/Makefile:8:
+SRCS-y := main.c $

ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
#323: FILE: examples/l3fwd-graph/main.c:129:
+static struct lcore_params * lcore_params = lcore_params_array_default;

WARNING:ARRAY_SIZE: Prefer ARRAY_SIZE(ipv4_l3fwd_lpm_route_array)
#355: FILE: examples/l3fwd-graph/main.c:161:
+	(sizeof(ipv4_l3fwd_lpm_route_array) / sizeof(ipv4_l3fwd_lpm_route_array[0]))

ERROR:ASSIGN_IN_IF: do not use assignment in if condition
#391: FILE: examples/l3fwd-graph/main.c:197:
+		if ((socketid = rte_lcore_to_socket_id(lcore) != 0) &&

WARNING:QUOTED_WHITESPACE_BEFORE_NEWLINE: unnecessary whitespace before a quoted newline
#393: FILE: examples/l3fwd-graph/main.c:199:
+			printf("warning: lcore %hhu is on socket %d with numa off 
",

WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned'
#450: FILE: examples/l3fwd-graph/main.c:256:
+				(unsigned)nb_rx_queue + 1, (unsigned)lcore);

WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned'
#450: FILE: examples/l3fwd-graph/main.c:256:
+				(unsigned)nb_rx_queue + 1, (unsigned)lcore);

WARNING:UNNECESSARY_ELSE: else is not generally useful after a break or return
#452: FILE: examples/l3fwd-graph/main.c:258:
+			return -1;
+		} else {

WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned'
#539: FILE: examples/l3fwd-graph/main.c:345:
+	unsigned size;

ERROR:SPACING: space required after that ',' (ctx:VxV)
#543: FILE: examples/l3fwd-graph/main.c:349:
+	while ((p = strchr(p0,'(')) != NULL) {
 	                     ^

ERROR:SPACING: space required after that ',' (ctx:VxV)
#545: FILE: examples/l3fwd-graph/main.c:351:
+		if((p0 = strchr(p,')')) == NULL)
 		                 ^

ERROR:SPACING: space required before the open parenthesis '('
#545: FILE: examples/l3fwd-graph/main.c:351:
+		if((p0 = strchr(p,')')) == NULL)

ERROR:ASSIGN_IN_IF: do not use assignment in if condition
#545: FILE: examples/l3fwd-graph/main.c:351:
+		if((p0 = strchr(p,')')) == NULL)

ERROR:SPACING: space required before the open parenthesis '('
#549: FILE: examples/l3fwd-graph/main.c:355:
+		if(size >= sizeof(s))

ERROR:SPACING: space required before the open brace '{'
#555: FILE: examples/l3fwd-graph/main.c:361:
+		for (i = 0; i < _NUM_FLD; i++){

WARNING:BLOCK_COMMENT_STYLE: Block comments use a trailing */ on a separate line
#625: FILE: examples/l3fwd-graph/main.c:431:
+	 * conflict with short options */

WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned'
#655: FILE: examples/l3fwd-graph/main.c:461:
+	(unsigned)8192)

WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned'
#762: FILE: examples/l3fwd-graph/main.c:568:
+	unsigned lcore_id;

ERROR:SPACING: space required after that ',' (ctx:VxV)
#873: FILE: examples/l3fwd-graph/main.c:679:
+	const char topLeft[] = { 27, '[', '1', ';', '1', 'H','

           reply	other threads:[~2020-01-31 17:05 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <20200131170201.3236153-6-jerinj@marvell.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=20200131170456.BFED91C12D@dpdk.org \
    --to=checkpatch@dpdk.org \
    --cc=jerinj@marvell.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
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).