[dpdk-test-report] |WARNING| pw76230 [PATCH v1 28/42] net/txgbe: add device xstats get

checkpatch at dpdk.org checkpatch at dpdk.org
Wed Sep 9 01:28:26 CEST 2020


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

_coding style issues_


WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned'
#303: FILE: drivers/net/txgbe/txgbe_ethdev.c:1275:
+	unsigned i, count;

WARNING:BRACES: braces {} are not necessary for single statement blocks
#306: FILE: drivers/net/txgbe/txgbe_ethdev.c:1278:
+	if (xstats_names == NULL) {
+		return count;
+	}

WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned'
#332: FILE: drivers/net/txgbe/txgbe_ethdev.c:1304:
+	unsigned i;

WARNING:BRACES: braces {} are not necessary for single statement blocks
#334: FILE: drivers/net/txgbe/txgbe_ethdev.c:1306:
+	if (ids == NULL) {
+		return txgbe_dev_xstats_get_names(dev, xstats_names, limit);
+	}

WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned'
#351: FILE: drivers/net/txgbe/txgbe_ethdev.c:1323:
+					 unsigned limit)

WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned'
#355: FILE: drivers/net/txgbe/txgbe_ethdev.c:1327:
+	unsigned i, count;

WARNING:BRACES: braces {} are not necessary for single statement blocks
#363: FILE: drivers/net/txgbe/txgbe_ethdev.c:1335:
+	if (xstats == NULL) {
+		return count;
+	}

WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned'
#386: FILE: drivers/net/txgbe/txgbe_ethdev.c:1358:
+					 unsigned limit)

WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned'
#390: FILE: drivers/net/txgbe/txgbe_ethdev.c:1362:
+	unsigned i, count;

WARNING:BRACES: braces {} are not necessary for single statement blocks
#398: FILE: drivers/net/txgbe/txgbe_ethdev.c:1370:
+	if (values == NULL) {
+		return count;
+	}

WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned'
#423: FILE: drivers/net/txgbe/txgbe_ethdev.c:1395:
+	unsigned i;

WARNING:BRACES: braces {} are not necessary for single statement blocks
#425: FILE: drivers/net/txgbe/txgbe_ethdev.c:1397:
+	if (ids == NULL) {
+		return txgbe_dev_xstats_get_(dev, values, limit);
+	}

WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned'
#486: FILE: drivers/net/txgbe/txgbe_ethdev.h:180:
+	unsigned offset;

total: 0 errors, 13 warnings, 0 checks, 414 lines checked


More information about the test-report mailing list