|WARNING| pw165454 [PATCH v4 1/9] power: add a common macro to verify lcore ID
checkpatch at dpdk.org
checkpatch at dpdk.org
Mon Jun 15 09:32:23 CEST 2026
Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/165454
_coding style issues_
WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#104: FILE: lib/power/power_common.h:28:
+#define RTE_POWER_VALID_LCOREID_OR_ERR_RET(lcore_id, retval) do { \
+ if (rte_eal_lcore_role(lcore_id) != ROLE_RTE && \
+ rte_eal_lcore_role(lcore_id) != ROLE_SERVICE) { \
+ POWER_LOG(ERR, "lcore id %u is invalid", lcore_id); \
+ return retval; \
+ } \
+} while (0)
total: 0 errors, 1 warnings, 24 lines checked
More information about the test-report
mailing list