[dpdk-test-report] |WARNING| pw68390 [PATCH v3 04/34] net/bnxt: add initial tf core session open

checkpatch at dpdk.org checkpatch at dpdk.org
Tue Apr 14 10:16:10 CEST 2020


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

_coding style issues_


CHECK:MACRO_ARG_REUSE: Macro argument reuse 'parms' - possible side-effects?
#1794: FILE: drivers/net/bnxt/tf_core/tf_msg_common.h:14:
+#define MSG_PREP(parms, mb, type, subtype, req, resp) do {	\
+		parms.mailbox = mb;				\
+		parms.tf_type = type;				\
+		parms.tf_subtype = subtype;			\
+		parms.tf_resp_code = 0;				\
+		parms.req_size = sizeof(req);			\
+		parms.req_data = (uint32_t *)&(req);		\
+		parms.resp_size = sizeof(resp);			\
+		parms.resp_data = (uint32_t *)&(resp);		\
+	} while (0)

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'parms' - possible side-effects?
#1805: FILE: drivers/net/bnxt/tf_core/tf_msg_common.h:25:
+#define MSG_PREP_NO_REQ(parms, mb, type, subtype, resp) do {	\
+		parms.mailbox = mb;				\
+		parms.tf_type = type;				\
+		parms.tf_subtype = subtype;			\
+		parms.tf_resp_code = 0;				\
+		parms.req_size  = 0;				\
+		parms.req_data  = NULL;				\
+		parms.resp_size = sizeof(resp);			\
+		parms.resp_data = (uint32_t *)&(resp);		\
+	} while (0)

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'parms' - possible side-effects?
#1816: FILE: drivers/net/bnxt/tf_core/tf_msg_common.h:36:
+#define MSG_PREP_NO_RESP(parms, mb, type, subtype, req) do {	\
+		parms.mailbox = mb;				\
+		parms.tf_type = type;				\
+		parms.tf_subtype = subtype;			\
+		parms.tf_resp_code = 0;				\
+		parms.req_size = sizeof(req);			\
+		parms.req_data = (uint32_t *)&(req);		\
+		parms.resp_size = 0;				\
+		parms.resp_data = NULL;				\
+	} while (0)

total: 0 errors, 0 warnings, 3 checks, 2202 lines checked


More information about the test-report mailing list