|WARNING| pw169048 [PATCH 36/45] net/dpaa2: enhance xstat implementation

checkpatch at dpdk.org checkpatch at dpdk.org
Thu Sep 3 16:01:59 CEST 2026


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

_coding style issues_


CHECK:MACRO_ARG_REUSE: Macro argument reuse 'field' - possible side-effects?
#299: FILE: drivers/net/dpaa2/dpaa2_ethdev.c:217:
+#define DPAA2_XSTAT_STR_SET(pg, field) \
+	.pg.field = (uint64_t)RTE_STR(field)

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'tc' - possible side-effects?
#302: FILE: drivers/net/dpaa2/dpaa2_ethdev.c:220:
+#define DPAA2_XSTAT_TC_STR_SET(pg, tc, field) \
+	.pg[tc].field = (uint64_t)("TC" RTE_STR(tc) "_" RTE_STR(field))

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'field' - possible side-effects?
#302: FILE: drivers/net/dpaa2/dpaa2_ethdev.c:220:
+#define DPAA2_XSTAT_TC_STR_SET(pg, tc, field) \
+	.pg[tc].field = (uint64_t)("TC" RTE_STR(tc) "_" RTE_STR(field))

CHECK:CAMELCASE: Avoid CamelCase: <PRIu64>
#984: FILE: drivers/net/dpaa2/dpaa2_ethdev.c:2296:
+			DPAA2_PMD_ERR("xstats id[%d] value(%" PRIu64 ") >= max count(%d)",

total: 0 errors, 0 warnings, 4 checks, 1341 lines checked


More information about the test-report mailing list