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

checkpatch at dpdk.org checkpatch at dpdk.org
Thu Apr 16 05:07:30 CEST 2026


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

_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_enabled(lcore_id)) { \
+		POWER_LOG(ERR, "lcore id %u is not enabled", lcore_id); \
+		return retval; \
+	} \
+} while (0)

total: 0 errors, 1 warnings, 13 lines checked


More information about the test-report mailing list