|WARNING| pw130635 [PATCH 1/3] event/cnxk: fix return values for capability API

checkpatch at dpdk.org checkpatch at dpdk.org
Tue Aug 22 15:17:15 CEST 2023


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

_coding style issues_


WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#186: FILE: drivers/event/cnxk/cnxk_eventdev.h:51:
+#define CNXK_VALID_DEV_OR_ERR_RET(dev, drv_name, err_val)                      \
 	do {                                                                   \
 		if (strncmp(dev->driver->name, drv_name, strlen(drv_name)))    \
+			return -err_val;                                       \
 	} while (0)

total: 0 errors, 1 warnings, 87 lines checked


More information about the test-report mailing list