|WARNING| pw163762 [PATCH V2 07/15] power: add a common macro to verify lcore ID

checkpatch at dpdk.org checkpatch at dpdk.org
Thu May 7 04:43:16 CEST 2026


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

_coding style issues_


WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#86: 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