[dpdk-test-report] |WARNING| pw25372 [PATCH 06/38] bus/dpaa: introducing FMan configurations

checkpatch at dpdk.org checkpatch at dpdk.org
Fri Jun 16 07:33:44 CEST 2017


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

_coding style issues_


ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#1223: FILE: drivers/bus/dpaa/include/fman.h:416:
+#define ETH_MAC_PRINTF_ARGS(a) \
+		(a)->addr_bytes[0], (a)->addr_bytes[1], \
+		(a)->addr_bytes[2], (a)->addr_bytes[3], \
+		(a)->addr_bytes[4], (a)->addr_bytes[5]

WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#1240: FILE: drivers/bus/dpaa/include/fman.h:433:
+#define FMAN_ERR(cond, rc, fmt, args...) \
+	do { \
+		if (unlikely(cond)) { \
+			_errno = (rc); \
+			DPAA_BUS_LOG(ERR, fmt "(%d)", ##args, errno); \
+			goto err; \
+		} \
+	} while (0)

total: 1 errors, 1 warnings, 1318 lines checked


More information about the test-report mailing list