[dpdk-test-report] |WARNING| pw100168 [RFC] mempool: implement index-based per core cache
checkpatch at dpdk.org
checkpatch at dpdk.org
Thu Sep 30 19:28:42 CEST 2021
Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/100168
_coding style issues_
WARNING:COMMIT_LOG_LONG_LINE: Possible unwrapped commit description (prefer a maximum 75 chars per line)
#62:
Future plan involves replacing global pool's pointer-based implementation with index-based implementation
WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned'
#92: FILE: lib/mempool/rte_mempool.c:483:
+ unsigned lcore_id;
ERROR:SPACING: spaces required around that '+=' (ctx:VxV)
#201: FILE: lib/mempool/rte_mempool.h:1333:
+ for (i = 0; i < (n & ~0x1); i+=2) {
^
WARNING:BRACES: braces {} are not necessary for single statement blocks
#206: FILE: lib/mempool/rte_mempool.h:1338:
+ 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
#210: FILE: lib/mempool/rte_mempool.h:1342:
+ for (i = 0; i < n; i++) {
+ cache_objs[i] = (uint32_t) RTE_PTR_DIFF(obj_table[i], base_value);
+ }
WARNING:BRACES: braces {} are not necessary for single statement blocks
#257: FILE: lib/mempool/rte_mempool.h:1482:
+ for (i = 0; i < req; ++i, ++len) {
+ cache_objs[len] = (uint32_t) RTE_PTR_DIFF(temp_objs[i], base_value);
+ }
ERROR:SPACING: spaces required around that '+=' (ctx:VxV)
#270: FILE: lib/mempool/rte_mempool.h:1495:
+ for (index = 0, len = cache->len - 1; index < (n & ~0x1); index+=2,
^
ERROR:SPACING: spaces required around that '-=' (ctx:VxV)
#271: FILE: lib/mempool/rte_mempool.h:1496:
+ len-=2, obj_table+=2) {
^
ERROR:SPACING: spaces required around that '+=' (ctx:VxV)
#271: FILE: lib/mempool/rte_mempool.h:1496:
+ len-=2, obj_table+=2) {
^
total: 4 errors, 5 warnings, 190 lines checked
More information about the test-report
mailing list