|WARNING| pw161424 [RFC PATCH 2/2] mempool: de-inline get/put objects unlikely code paths

checkpatch at dpdk.org checkpatch at dpdk.org
Mon Feb 16 12:59:54 CET 2026


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

_coding style issues_


WARNING:IF_0: Consider removing the code enclosed by this #if 0 and its #endif
#98: FILE: lib/mempool/rte_mempool.c:1044:
+#if 0 /* Simple alternative to rte_memcpy(). */

ERROR:CODE_INDENT: code indent should use tabs where possible
#195: FILE: lib/mempool/rte_mempool.c:1752:
+                           unsigned int n, struct rte_mempool_cache *cache)$

WARNING:LEADING_SPACE: please, no spaces at the start of a line
#195: FILE: lib/mempool/rte_mempool.c:1752:
+                           unsigned int n, struct rte_mempool_cache *cache)$

ERROR:CODE_INDENT: code indent should use tabs where possible
#200: FILE: lib/mempool/rte_mempool.c:1757:
+                           struct rte_mempool_cache *cache)$

WARNING:LEADING_SPACE: please, no spaces at the start of a line
#200: FILE: lib/mempool/rte_mempool.c:1757:
+                           struct rte_mempool_cache *cache)$

ERROR:CODE_INDENT: code indent should use tabs where possible
#205: FILE: lib/mempool/rte_mempool.c:1762:
+                           struct rte_mempool_cache *cache)$

WARNING:LEADING_SPACE: please, no spaces at the start of a line
#205: FILE: lib/mempool/rte_mempool.c:1762:
+                           struct rte_mempool_cache *cache)$

ERROR:CODE_INDENT: code indent should use tabs where possible
#210: FILE: lib/mempool/rte_mempool.c:1767:
+                           unsigned int n, struct rte_mempool_cache *cache)$

WARNING:LEADING_SPACE: please, no spaces at the start of a line
#210: FILE: lib/mempool/rte_mempool.c:1767:
+                           unsigned int n, struct rte_mempool_cache *cache)$

ERROR:CODE_INDENT: code indent should use tabs where possible
#215: FILE: lib/mempool/rte_mempool.c:1772:
+                           struct rte_mempool_cache *cache)$

WARNING:LEADING_SPACE: please, no spaces at the start of a line
#215: FILE: lib/mempool/rte_mempool.c:1772:
+                           struct rte_mempool_cache *cache)$

ERROR:CODE_INDENT: code indent should use tabs where possible
#220: FILE: lib/mempool/rte_mempool.c:1777:
+                           struct rte_mempool_cache *cache)$

WARNING:LEADING_SPACE: please, no spaces at the start of a line
#220: FILE: lib/mempool/rte_mempool.c:1777:
+                           struct rte_mempool_cache *cache)$

ERROR:CODE_INDENT: code indent should use tabs where possible
#225: FILE: lib/mempool/rte_mempool.c:1782:
+                           struct rte_mempool_cache *cache)$

WARNING:LEADING_SPACE: please, no spaces at the start of a line
#225: FILE: lib/mempool/rte_mempool.c:1782:
+                           struct rte_mempool_cache *cache)$

WARNING:LEADING_SPACE: please, no spaces at the start of a line
#227: FILE: lib/mempool/rte_mempool.c:1784:
+    int ret = rte_mempool_do_generic_get(mp, obj_table, 1, cache);$

WARNING:LEADING_SPACE: please, no spaces at the start of a line
#228: FILE: lib/mempool/rte_mempool.c:1785:
+    if (ret == 0)$

ERROR:CODE_INDENT: code indent should use tabs where possible
#229: FILE: lib/mempool/rte_mempool.c:1786:
+        return 0x1234;$

WARNING:LEADING_SPACE: please, no spaces at the start of a line
#229: FILE: lib/mempool/rte_mempool.c:1786:
+        return 0x1234;$

WARNING:LEADING_SPACE: please, no spaces at the start of a line
#230: FILE: lib/mempool/rte_mempool.c:1787:
+    else$

ERROR:CODE_INDENT: code indent should use tabs where possible
#231: FILE: lib/mempool/rte_mempool.c:1788:
+        exit(ret);$

WARNING:LEADING_SPACE: please, no spaces at the start of a line
#231: FILE: lib/mempool/rte_mempool.c:1788:
+        exit(ret);$

WARNING:IF_0: Consider removing the code enclosed by this #if 0 and its #endif
#289: FILE: lib/mempool/rte_mempool.h:1433:
+#if 0 /* Simple alternative to rte_memcpy(). */

total: 9 errors, 14 warnings, 416 lines checked


More information about the test-report mailing list