[dpdk-test-report] |WARNING| pw53655 [PATCH v1 13/27] common/octeontx2: add uplink message support

checkpatch at dpdk.org checkpatch at dpdk.org
Thu May 23 10:19:00 CEST 2019


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

_coding style issues_


ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#226: FILE: drivers/common/octeontx2/otx2_dev.c:463:
+#define M(_name, _id, _fn_name, _req_type, _rsp_type)		\
+	case _id: {						\
+		struct _rsp_type *rsp;				\
+		int err;					\
+								\
+		rsp = (struct _rsp_type *)otx2_mbox_alloc_msg(	\
+			&dev->mbox_up, 0,			\
+			sizeof(struct _rsp_type));		\
+		if (!rsp)					\
+			return -ENOMEM;				\
+								\
+		rsp->hdr.id = _id;				\
+		rsp->hdr.sig = OTX2_MBOX_RSP_SIG;		\
+		rsp->hdr.pcifunc = dev->pf_func;		\
+		rsp->hdr.rc = 0;				\
+								\
+		err = otx2_mbox_up_handler_ ## _fn_name(	\
+			dev, (struct _req_type *)req, rsp);	\
+		return err;					\
+	}

total: 1 errors, 0 warnings, 295 lines checked


More information about the test-report mailing list