|WARNING| pw144472 [PATCH v2 14/18] net/cnxk: support Rx burst vector for cn20k

checkpatch at dpdk.org checkpatch at dpdk.org
Thu Sep 26 18:09:00 CEST 2024


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

_coding style issues_


CHECK:MACRO_ARG_REUSE: Macro argument reuse '_mbuf' - possible side-effects?
#123: FILE: drivers/net/cnxk/cn20k_rx.h:447:
+#define NIX_PUSH_META_TO_FREE(_mbuf, _laddr, _loff_p)                                              \
+	do {                                                                                       \
+		*(uint64_t *)((_laddr) + (*(_loff_p) << 3)) = (uint64_t)_mbuf;                     \
+		*(_loff_p) = *(_loff_p) + 1;                                                       \
+		/* Mark meta mbuf as put */                                                        \
+		RTE_MEMPOOL_CHECK_COOKIES(_mbuf->pool, (void **)&_mbuf, 1, 0);                     \
+	} while (0)

CHECK:MACRO_ARG_REUSE: Macro argument reuse '_loff_p' - possible side-effects?
#123: FILE: drivers/net/cnxk/cn20k_rx.h:447:
+#define NIX_PUSH_META_TO_FREE(_mbuf, _laddr, _loff_p)                                              \
+	do {                                                                                       \
+		*(uint64_t *)((_laddr) + (*(_loff_p) << 3)) = (uint64_t)_mbuf;                     \
+		*(_loff_p) = *(_loff_p) + 1;                                                       \
+		/* Mark meta mbuf as put */                                                        \
+		RTE_MEMPOOL_CHECK_COOKIES(_mbuf->pool, (void **)&_mbuf, 1, 0);                     \
+	} while (0)

CHECK:OPEN_ENDED_LINE: Lines should not end with a '('
#223: FILE: drivers/net/cnxk/cn20k_rx.h:547:
+					rte_prefetch0(

CHECK:OPEN_ENDED_LINE: Lines should not end with a '('
#225: FILE: drivers/net/cnxk/cn20k_rx.h:549:
+					rte_prefetch0(

CHECK:OPEN_ENDED_LINE: Lines should not end with a '('
#227: FILE: drivers/net/cnxk/cn20k_rx.h:551:
+					rte_prefetch0(

CHECK:OPEN_ENDED_LINE: Lines should not end with a '('
#229: FILE: drivers/net/cnxk/cn20k_rx.h:553:
+					rte_prefetch0(

total: 0 errors, 0 warnings, 6 checks, 475 lines checked


More information about the test-report mailing list