automatic DPDK test reports
 help / color / mirror / Atom feed
* [dpdk-test-report] |WARNING| pw25988 [PATCH v2] lib/librte_sched: fix update tc_credits
       [not found] <1498746942-1741-2-git-send-email-olivier.chirossel@gmail.com>
@ 2017-06-29 21:58 ` checkpatch
  0 siblings, 0 replies; only message in thread
From: checkpatch @ 2017-06-29 21:58 UTC (permalink / raw)
  To: test-report; +Cc: Olivier Chirossel

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

_coding style issues_


ERROR:TRAILING_WHITESPACE: trailing whitespace
#56: FILE: lib/librte_sched/rte_sched.c:86:
+^Iuint32_t tc_rate[RTE_SCHED_TRAFFIC_CLASSES_PER_PIPE];  $

ERROR:TRAILING_WHITESPACE: trailing whitespace
#74: FILE: lib/librte_sched/rte_sched.c:571:
+^I$

ERROR:CODE_INDENT: code indent should use tabs where possible
#76: FILE: lib/librte_sched/rte_sched.c:573:
+^I^I        dst->tc_rate[j] = src->tc_rate[j];$

ERROR:TRAILING_WHITESPACE: trailing whitespace
#81: FILE: lib/librte_sched/rte_sched.c:578:
+^I$

ERROR:CODE_INDENT: code indent should use tabs where possible
#89: FILE: lib/librte_sched/rte_sched.c:844:
+^I        s->tc_rate[i] =  params->tc_rate[i];$

ERROR:CODE_INDENT: code indent should use tabs where possible
#109: FILE: lib/librte_sched/rte_sched.c:1503:
+^I        for (j = 0; j < RTE_SCHED_TRAFFIC_CLASSES_PER_PIPE; j++) {$

WARNING:SUSPECT_CODE_INDENT: suspect code indent for conditional statements (16, 23)
#109: FILE: lib/librte_sched/rte_sched.c:1503:
+	        for (j = 0; j < RTE_SCHED_TRAFFIC_CLASSES_PER_PIPE; j++) {
+		       if ((subport->tc_credits[j] + subport->tc_credits_per_period[j]) < subport->tc_rate[j]) {

WARNING:LONG_LINE: line over 90 characters
#110: FILE: lib/librte_sched/rte_sched.c:1504:
+		       if ((subport->tc_credits[j] + subport->tc_credits_per_period[j]) < subport->tc_rate[j]) {

WARNING:TABSTOP: Statements should start on a tabstop
#110: FILE: lib/librte_sched/rte_sched.c:1504:
+		       if ((subport->tc_credits[j] + subport->tc_credits_per_period[j]) < subport->tc_rate[j]) {

WARNING:SUSPECT_CODE_INDENT: suspect code indent for conditional statements (23, 30)
#110: FILE: lib/librte_sched/rte_sched.c:1504:
+		       if ((subport->tc_credits[j] + subport->tc_credits_per_period[j]) < subport->tc_rate[j]) {
+	                      subport->tc_credits[j] += subport->tc_credits_per_period[j];

WARNING:BRACES: braces {} are not necessary for any arm of this statement
#110: FILE: lib/librte_sched/rte_sched.c:1504:
+		       if ((subport->tc_credits[j] + subport->tc_credits_per_period[j]) < subport->tc_rate[j]) {
[...]
+		       else {
[...]

ERROR:CODE_INDENT: code indent should use tabs where possible
#111: FILE: lib/librte_sched/rte_sched.c:1505:
+^I                      subport->tc_credits[j] += subport->tc_credits_per_period[j];$

WARNING:TABSTOP: Statements should start on a tabstop
#112: FILE: lib/librte_sched/rte_sched.c:1506:
+		       }

WARNING:TABSTOP: Statements should start on a tabstop
#113: FILE: lib/librte_sched/rte_sched.c:1507:
+		       else {

ERROR:ELSE_AFTER_BRACE: else should follow close brace '}'
#113: FILE: lib/librte_sched/rte_sched.c:1507:
+		       }
+		       else {

WARNING:TABSTOP: Statements should start on a tabstop
#115: FILE: lib/librte_sched/rte_sched.c:1509:
+		       }

ERROR:CODE_INDENT: code indent should use tabs where possible
#126: FILE: lib/librte_sched/rte_sched.c:1516:
+^I  ^Ifor (j = 0; j < RTE_SCHED_TRAFFIC_CLASSES_PER_PIPE; j++) {$

WARNING:SPACE_BEFORE_TAB: please, no space before tabs
#126: FILE: lib/librte_sched/rte_sched.c:1516:
+^I  ^Ifor (j = 0; j < RTE_SCHED_TRAFFIC_CLASSES_PER_PIPE; j++) {$

WARNING:SUSPECT_CODE_INDENT: suspect code indent for conditional statements (16, 23)
#126: FILE: lib/librte_sched/rte_sched.c:1516:
+	  	for (j = 0; j < RTE_SCHED_TRAFFIC_CLASSES_PER_PIPE; j++) {
+		       if ((pipe->tc_credits[j] + params->tc_credits_per_period[j]) < params->tc_rate[j]) {

WARNING:LONG_LINE: line over 90 characters
#127: FILE: lib/librte_sched/rte_sched.c:1517:
+		       if ((pipe->tc_credits[j] + params->tc_credits_per_period[j]) < params->tc_rate[j]) {

WARNING:TABSTOP: Statements should start on a tabstop
#127: FILE: lib/librte_sched/rte_sched.c:1517:
+		       if ((pipe->tc_credits[j] + params->tc_credits_per_period[j]) < params->tc_rate[j]) {

WARNING:SUSPECT_CODE_INDENT: suspect code indent for conditional statements (23, 30)
#127: FILE: lib/librte_sched/rte_sched.c:1517:
+		       if ((pipe->tc_credits[j] + params->tc_credits_per_period[j]) < params->tc_rate[j]) {
+	                      pipe->tc_credits[j] += params->tc_credits_per_period[j];

WARNING:BRACES: braces {} are not necessary for any arm of this statement
#127: FILE: lib/librte_sched/rte_sched.c:1517:
+		       if ((pipe->tc_credits[j] + params->tc_credits_per_period[j]) < params->tc_rate[j]) {
[...]
+		       else {
[...]

ERROR:CODE_INDENT: code indent should use tabs where possible
#128: FILE: lib/librte_sched/rte_sched.c:1518:
+^I                      pipe->tc_credits[j] += params->tc_credits_per_period[j];$

WARNING:TABSTOP: Statements should start on a tabstop
#129: FILE: lib/librte_sched/rte_sched.c:1519:
+		       }

WARNING:TABSTOP: Statements should start on a tabstop
#130: FILE: lib/librte_sched/rte_sched.c:1520:
+		       else {

ERROR:ELSE_AFTER_BRACE: else should follow close brace '}'
#130: FILE: lib/librte_sched/rte_sched.c:1520:
+		       }
+		       else {

WARNING:TABSTOP: Statements should start on a tabstop
#132: FILE: lib/librte_sched/rte_sched.c:1522:
+		       }

ERROR:CODE_INDENT: code indent should use tabs where possible
#155: FILE: lib/librte_sched/rte_sched.c:1590:
+^I        for (j = 0; j < RTE_SCHED_TRAFFIC_CLASSES_PER_PIPE; j++) {$

WARNING:SUSPECT_CODE_INDENT: suspect code indent for conditional statements (16, 23)
#155: FILE: lib/librte_sched/rte_sched.c:1590:
+	        for (j = 0; j < RTE_SCHED_TRAFFIC_CLASSES_PER_PIPE; j++) {
+		       if ((subport->tc_credits[j] + subport->tc_credits_per_period[j]) < subport->tc_rate[j]) {

WARNING:LONG_LINE: line over 90 characters
#156: FILE: lib/librte_sched/rte_sched.c:1591:
+		       if ((subport->tc_credits[j] + subport->tc_credits_per_period[j]) < subport->tc_rate[j]) {

WARNING:TABSTOP: Statements should start on a tabstop
#156: FILE: lib/librte_sched/rte_sched.c:1591:
+		       if ((subport->tc_credits[j] + subport->tc_credits_per_period[j]) < subport->tc_rate[j]) {

WARNING:SUSPECT_CODE_INDENT: suspect code indent for conditional statements (23, 30)
#156: FILE: lib/librte_sched/rte_sched.c:1591:
+		       if ((subport->tc_credits[j] + subport->tc_credits_per_period[j]) < subport->tc_rate[j]) {
+	                      subport->tc_credits[j] += subport->tc_credits_per_period[j];

WARNING:BRACES: braces {} are not necessary for any arm of this statement
#156: FILE: lib/librte_sched/rte_sched.c:1591:
+		       if ((subport->tc_credits[j] + subport->tc_credits_per_period[j]) < subport->tc_rate[j]) {
[...]
+		       else {
[...]

ERROR:CODE_INDENT: code indent should use tabs where possible
#157: FILE: lib/librte_sched/rte_sched.c:1592:
+^I                      subport->tc_credits[j] += subport->tc_credits_per_period[j];$

WARNING:TABSTOP: Statements should start on a tabstop
#158: FILE: lib/librte_sched/rte_sched.c:1593:
+		       }

WARNING:TABSTOP: Statements should start on a tabstop
#159: FILE: lib/librte_sched/rte_sched.c:1594:
+		       else {

ERROR:ELSE_AFTER_BRACE: else should follow close brace '}'
#159: FILE: lib/librte_sched/rte_sched.c:1594:
+		       }
+		       else {

WARNING:TABSTOP: Statements should start on a tabstop
#161: FILE: lib/librte_sched/rte_sched.c:1596:
+		       }

ERROR:TRAILING_WHITESPACE: trailing whitespace
#162: FILE: lib/librte_sched/rte_sched.c:1597:
+^I^I}^I$

ERROR:CODE_INDENT: code indent should use tabs where possible
#173: FILE: lib/librte_sched/rte_sched.c:1604:
+^I        for (j = 0; j < RTE_SCHED_TRAFFIC_CLASSES_PER_PIPE; j++) {$

WARNING:SUSPECT_CODE_INDENT: suspect code indent for conditional statements (16, 23)
#173: FILE: lib/librte_sched/rte_sched.c:1604:
+	        for (j = 0; j < RTE_SCHED_TRAFFIC_CLASSES_PER_PIPE; j++) {
+		       if ((pipe->tc_credits[j] + params->tc_credits_per_period[j]) < params->tc_rate[j]) {

WARNING:LONG_LINE: line over 90 characters
#174: FILE: lib/librte_sched/rte_sched.c:1605:
+		       if ((pipe->tc_credits[j] + params->tc_credits_per_period[j]) < params->tc_rate[j]) {

WARNING:TABSTOP: Statements should start on a tabstop
#174: FILE: lib/librte_sched/rte_sched.c:1605:
+		       if ((pipe->tc_credits[j] + params->tc_credits_per_period[j]) < params->tc_rate[j]) {

WARNING:SUSPECT_CODE_INDENT: suspect code indent for conditional statements (23, 30)
#174: FILE: lib/librte_sched/rte_sched.c:1605:
+		       if ((pipe->tc_credits[j] + params->tc_credits_per_period[j]) < params->tc_rate[j]) {
+	                      pipe->tc_credits[j] += params->tc_credits_per_period[j];

WARNING:BRACES: braces {} are not necessary for any arm of this statement
#174: FILE: lib/librte_sched/rte_sched.c:1605:
+		       if ((pipe->tc_credits[j] + params->tc_credits_per_period[j]) < params->tc_rate[j]) {
[...]
+		       else {
[...]

ERROR:CODE_INDENT: code indent should use tabs where possible
#175: FILE: lib/librte_sched/rte_sched.c:1606:
+^I                      pipe->tc_credits[j] += params->tc_credits_per_period[j];$

WARNING:TABSTOP: Statements should start on a tabstop
#176: FILE: lib/librte_sched/rte_sched.c:1607:
+		       }

WARNING:TABSTOP: Statements should start on a tabstop
#177: FILE: lib/librte_sched/rte_sched.c:1608:
+		       else {

ERROR:ELSE_AFTER_BRACE: else should follow close brace '}'
#177: FILE: lib/librte_sched/rte_sched.c:1608:
+		       }
+		       else {

WARNING:TABSTOP: Statements should start on a tabstop
#179: FILE: lib/librte_sched/rte_sched.c:1610:
+		       }

total: 18 errors, 33 warnings, 146 lines checked

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-06-29 21:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1498746942-1741-2-git-send-email-olivier.chirossel@gmail.com>
2017-06-29 21:58 ` [dpdk-test-report] |WARNING| pw25988 [PATCH v2] lib/librte_sched: fix update tc_credits 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).