[dpdk-test-report] |WARNING| pw50454 [v4] lib/metrics: add unregister api for metrics

checkpatch at dpdk.org checkpatch at dpdk.org
Fri Feb 22 16:39:40 CET 2019


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

_coding style issues_


WARNING:BRACES: braces {} are not necessary for single statement blocks
#135: FILE: lib/librte_metrics/rte_metrics.c:136:
+			if (idx == idx_base + cnt_names) {
+				break;
+			}

WARNING:BRACES: braces {} are not necessary for single statement blocks
#141: FILE: lib/librte_metrics/rte_metrics.c:142:
+	if (idx_base == RTE_METRICS_MAX_METRICS) {
+		return -ENOMEM;
+	}

ERROR:SPACING: space prohibited before that close parenthesis ')'
#208: FILE: lib/librte_metrics/rte_metrics.c:233:
+	if (count < 1 )

ERROR:TRAILING_WHITESPACE: trailing whitespace
#271: FILE: lib/librte_metrics/rte_metrics.c:298:
+^I^Ifor (idx_name = 0; idx < stats->cnt_stats && $

total: 2 errors, 2 warnings, 310 lines checked


More information about the test-report mailing list