|WARNING| pw105406 [PATCH 1/1] mempool: implement index-based per core cache

checkpatch at dpdk.org checkpatch at dpdk.org
Sat Dec 25 00:01:30 CET 2021


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

_coding style issues_


WARNING:BRACES: braces {} are not necessary for single statement blocks
#160: FILE: lib/mempool/rte_mempool.h:1399:
+	if (n & 0x1) {
+		cache_objs[i] = (uint32_t) RTE_PTR_DIFF(obj_table[i], base_value);
+	}

WARNING:BRACES: braces {} are not necessary for single statement blocks
#164: FILE: lib/mempool/rte_mempool.h:1403:
+	for (i = 0; i < n; i++) {
+		cache_objs[i] = (uint32_t) RTE_PTR_DIFF(obj_table[i], base_value);
+	}

total: 0 errors, 2 warnings, 205 lines checked


More information about the test-report mailing list