|WARNING| pw164249 [PATCH v3 02/10] power: add a common macro to verify lcore ID

checkpatch at dpdk.org checkpatch at dpdk.org
Fri May 22 06:11:23 CEST 2026


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

_coding style issues_


WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#84: FILE: lib/power/power_common.h:26:
+#define RTE_POWER_VALID_LCOREID_OR_ERR_RET(lcore_id, retval) do { \
+	if (!rte_lcore_is_eal_managed(lcore_id)) { \
+		POWER_LOG(ERR, "lcore id %u is invalid", lcore_id); \
+		return retval; \
+	} \
+} while (0)

total: 0 errors, 1 warnings, 13 lines checked


More information about the test-report mailing list