|WARNING| pw167116 [RFC PATCH v7] pile stack and mempool driver

checkpatch at dpdk.org checkpatch at dpdk.org
Mon Aug 3 10:15:43 CEST 2026


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

_coding style issues_


WARNING:IF_0: Consider removing the code enclosed by this #if 0 and its #endif
#243: FILE: app/test/test_stack.c:172:
+#if 0 /* FIXME: Omitted. Doesn't compile [-Warray-bounds=]. Write an obfuscated method. */

ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
#608: FILE: lib/eal/include/rte_bitset.h:981:
+rte_bitset_copy(uint64_t * __restrict dst_bitset, const uint64_t * __restrict src_bitset,

ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
#608: FILE: lib/eal/include/rte_bitset.h:981:
+rte_bitset_copy(uint64_t * __restrict dst_bitset, const uint64_t * __restrict src_bitset,

WARNING:MACRO_ARG_UNUSED: Argument 'alignment' is not used in function-like macro
#640: FILE: lib/eal/include/rte_common.h:573:
+#define __rte_assume_aligned(ptr, alignment) (ptr)

ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
#676: FILE: lib/eal/x86/include/rte_memcpy.h:48:
+rte_memcpy(void * __restrict dst, const void * __restrict src, size_t n);

ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
#676: FILE: lib/eal/x86/include/rte_memcpy.h:48:
+rte_memcpy(void * __restrict dst, const void * __restrict src, size_t n);

ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
#685: FILE: lib/eal/x86/include/rte_memcpy.h:56:
+rte_mov15_or_less(void * __restrict dst, const void * __restrict src, size_t n)

ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
#685: FILE: lib/eal/x86/include/rte_memcpy.h:56:
+rte_mov15_or_less(void * __restrict dst, const void * __restrict src, size_t n)

ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
#694: FILE: lib/eal/x86/include/rte_memcpy.h:101:
+rte_mov16(uint8_t * __restrict dst, const uint8_t * __restrict src)

ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
#694: FILE: lib/eal/x86/include/rte_memcpy.h:101:
+rte_mov16(uint8_t * __restrict dst, const uint8_t * __restrict src)

ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
#703: FILE: lib/eal/x86/include/rte_memcpy.h:114:
+rte_mov32(uint8_t * __restrict dst, const uint8_t * __restrict src)

ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
#703: FILE: lib/eal/x86/include/rte_memcpy.h:114:
+rte_mov32(uint8_t * __restrict dst, const uint8_t * __restrict src)

ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
#712: FILE: lib/eal/x86/include/rte_memcpy.h:132:
+rte_mov48(uint8_t * __restrict dst, const uint8_t * __restrict src)

ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
#712: FILE: lib/eal/x86/include/rte_memcpy.h:132:
+rte_mov48(uint8_t * __restrict dst, const uint8_t * __restrict src)

ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
#721: FILE: lib/eal/x86/include/rte_memcpy.h:149:
+rte_mov64(uint8_t * __restrict dst, const uint8_t * __restrict src)

ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
#721: FILE: lib/eal/x86/include/rte_memcpy.h:149:
+rte_mov64(uint8_t * __restrict dst, const uint8_t * __restrict src)

ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
#730: FILE: lib/eal/x86/include/rte_memcpy.h:167:
+rte_mov128(uint8_t * __restrict dst, const uint8_t * __restrict src)

ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
#730: FILE: lib/eal/x86/include/rte_memcpy.h:167:
+rte_mov128(uint8_t * __restrict dst, const uint8_t * __restrict src)

ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
#739: FILE: lib/eal/x86/include/rte_memcpy.h:178:
+rte_mov256(uint8_t * __restrict dst, const uint8_t * __restrict src)

ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
#739: FILE: lib/eal/x86/include/rte_memcpy.h:178:
+rte_mov256(uint8_t * __restrict dst, const uint8_t * __restrict src)

ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
#757: FILE: lib/eal/x86/include/rte_memcpy.h:198:
+rte_mov128blocks(uint8_t * __restrict dst, const uint8_t * __restrict src, size_t n)

ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
#757: FILE: lib/eal/x86/include/rte_memcpy.h:198:
+rte_mov128blocks(uint8_t * __restrict dst, const uint8_t * __restrict src, size_t n)

ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
#766: FILE: lib/eal/x86/include/rte_memcpy.h:218:
+rte_mov512blocks(uint8_t * __restrict dst, const uint8_t * __restrict src, size_t n)

ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
#766: FILE: lib/eal/x86/include/rte_memcpy.h:218:
+rte_mov512blocks(uint8_t * __restrict dst, const uint8_t * __restrict src, size_t n)

ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
#775: FILE: lib/eal/x86/include/rte_memcpy.h:251:
+rte_memcpy_generic_more_than_64(void * __restrict dst, const void * __restrict src,

ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
#775: FILE: lib/eal/x86/include/rte_memcpy.h:251:
+rte_memcpy_generic_more_than_64(void * __restrict dst, const void * __restrict src,

ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
#793: FILE: lib/eal/x86/include/rte_memcpy.h:345:
+rte_mov128blocks(uint8_t * __restrict dst, const uint8_t * __restrict src, size_t n)

ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
#793: FILE: lib/eal/x86/include/rte_memcpy.h:345:
+rte_mov128blocks(uint8_t * __restrict dst, const uint8_t * __restrict src, size_t n)

ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
#802: FILE: lib/eal/x86/include/rte_memcpy.h:378:
+rte_memcpy_generic_more_than_64(void * __restrict dst, const void * __restrict src,

ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
#802: FILE: lib/eal/x86/include/rte_memcpy.h:378:
+rte_memcpy_generic_more_than_64(void * __restrict dst, const void * __restrict src,

ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
#821: FILE: lib/eal/x86/include/rte_memcpy.h:552:
+rte_memcpy_generic_more_than_64(void * __restrict dst, const void * __restrict src,

ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
#821: FILE: lib/eal/x86/include/rte_memcpy.h:552:
+rte_memcpy_generic_more_than_64(void * __restrict dst, const void * __restrict src,

ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
#830: FILE: lib/eal/x86/include/rte_memcpy.h:660:
+rte_memcpy_aligned_more_than_64(void * __restrict dst, const void * __restrict src,

ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
#830: FILE: lib/eal/x86/include/rte_memcpy.h:660:
+rte_memcpy_aligned_more_than_64(void * __restrict dst, const void * __restrict src,

ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
#839: FILE: lib/eal/x86/include/rte_memcpy.h:680:
+rte_memcpy(void * __restrict dst, const void * __restrict src, size_t n)

ERROR:POINTER_LOCATION: "foo * bar" should be "foo *bar"
#839: FILE: lib/eal/x86/include/rte_memcpy.h:680:
+rte_memcpy(void * __restrict dst, const void * __restrict src, size_t n)

ERROR:POINTER_LOCATION: "foo * const * bar" should be "foo * const *bar"
#1433: FILE: lib/stack/rte_stack.h:184:
+rte_stack_push(struct rte_stack *s, void * const * __restrict obj_table, unsigned int n)

ERROR:POINTER_LOCATION: "foo ** bar" should be "foo **bar"
#1450: FILE: lib/stack/rte_stack.h:210:
+rte_stack_pop(struct rte_stack *s, void ** __restrict obj_table, unsigned int n)

ERROR:POINTER_LOCATION: "foo * const * bar" should be "foo * const *bar"
#1480: FILE: lib/stack/rte_stack_lf.h:37:
+		    void * const * __restrict obj_table,

ERROR:POINTER_LOCATION: "foo ** bar" should be "foo **bar"
#1489: FILE: lib/stack/rte_stack_lf.h:74:
+__rte_stack_lf_pop(struct rte_stack *s, void ** __restrict obj_table,

ERROR:POINTER_LOCATION: "foo ** bar" should be "foo **bar"
#1511: FILE: lib/stack/rte_stack_lf_c11.h:102:
+			 void ** __restrict obj_table,

ERROR:POINTER_LOCATION: "foo ** bar" should be "foo **bar"
#1524: FILE: lib/stack/rte_stack_lf_generic.h:77:
+			 void ** __restrict obj_table,

ERROR:POINTER_LOCATION: "foo ** bar" should be "foo **bar"
#1537: FILE: lib/stack/rte_stack_lf_stubs.h:33:
+			 void ** __restrict obj_table,

ERROR:POINTER_LOCATION: "foo ** bar" should be "foo **bar"
#1654: FILE: lib/stack/rte_stack_pile.h:67:
+		void ** __restrict obj_table,

ERROR:POINTER_LOCATION: "foo * const * bar" should be "foo * const *bar"
#1688: FILE: lib/stack/rte_stack_pile.h:101:
+		void * const * __restrict obj_table,

ERROR:POINTER_LOCATION: "foo ** bar" should be "foo **bar"
#1773: FILE: lib/stack/rte_stack_pile.h:186:
+		void ** __restrict obj_table,

WARNING:LEADING_SPACE: please, no spaces at the start of a line
#1892: FILE: lib/stack/rte_stack_pile.h:305:
+    return 0;$

ERROR:POINTER_LOCATION: "foo * const * bar" should be "foo * const *bar"
#1927: FILE: lib/stack/rte_stack_std.h:23:
+__rte_stack_std_push(struct rte_stack *s, void * const * __restrict obj_table,

ERROR:POINTER_LOCATION: "foo ** bar" should be "foo **bar"
#1933: FILE: lib/stack/rte_stack_std.h:28:
+	void ** __restrict stack_objs;

ERROR:POINTER_LOCATION: "foo ** bar" should be "foo **bar"
#1960: FILE: lib/stack/rte_stack_std.h:62:
+__rte_stack_std_pop(struct rte_stack *s, void ** __restrict obj_table, unsigned int n)

ERROR:POINTER_LOCATION: "foo ** bar" should be "foo **bar"
#1965: FILE: lib/stack/rte_stack_std.h:66:
+	void ** __restrict stack_objs;

total: 48 errors, 3 warnings, 1608 lines checked
Warning in lib/mempool/rte_mempool.c:
Using rte_panic/rte_exit
Warning in lib/stack/rte_stack_pile.h:
Adding __rte_always_inline; prefer plain inline


More information about the test-report mailing list