[dpdk-test-report] |WARNING| pw32436 [PATCH 14/23] eal: add support for dynamic unmapping of pages

checkpatch at dpdk.org checkpatch at dpdk.org
Tue Dec 19 12:11:38 CET 2017


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

_coding style issues_


ERROR:OPEN_BRACE: open brace '{' following function definitions go on the next line
#65: FILE: lib/librte_eal/linuxapp/eal/eal_memalloc.c:282:
+static int
+free_page(struct rte_memseg *ms, struct hugepage_info *hi, unsigned list_idx,
+		unsigned seg_idx) {

WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned'
#66: FILE: lib/librte_eal/linuxapp/eal/eal_memalloc.c:283:
+free_page(struct rte_memseg *ms, struct hugepage_info *hi, unsigned list_idx,

WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned'
#67: FILE: lib/librte_eal/linuxapp/eal/eal_memalloc.c:284:
+		unsigned seg_idx) {

WARNING:BRACES: braces {} are not necessary for single statement blocks
#107: FILE: lib/librte_eal/linuxapp/eal/eal_memalloc.c:324:
+		if (is_zero_length(fd)) {
+			unlink(path);
+		}

ERROR:OPEN_BRACE: open brace '{' following function definitions go on the next line
#166: FILE: lib/librte_eal/linuxapp/eal/eal_memalloc.c:500:
+int
+eal_memalloc_free_page(struct rte_memseg *ms) {

WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned'
#170: FILE: lib/librte_eal/linuxapp/eal/eal_memalloc.c:504:
+	unsigned msl_idx, seg_idx;

total: 2 errors, 4 warnings, 171 lines checked


More information about the test-report mailing list