automatic DPDK test reports
 help / color / mirror / Atom feed
* |WARNING| pw155992 [PATCH v5 06/17] net/nbl: add Dispatch layer definitions and implementation
       [not found] <20250819102237.3067518-7-dimon.zhao@nebula-matrix.com>
@ 2025-08-19 10:23 ` checkpatch
  0 siblings, 0 replies; only message in thread
From: checkpatch @ 2025-08-19 10:23 UTC (permalink / raw)
  To: test-report; +Cc: Dimon Zhao

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

_coding style issues_


WARNING:MACRO_ARG_UNUSED: Argument 'disp_op' is not used in function-like macro
#518: FILE: drivers/net/nbl/nbl_dispatch.c:373:
+#define NBL_DISP_SET_OPS(disp_op, res_func, ctrl_lvl2, msg_type, msg_req, msg_resp)		\
+do {												\
+	typeof(msg_type) _msg_type = (msg_type);						\
+	typeof(msg_resp) _msg_resp = (msg_resp);						\
+	uint32_t _ctrl_lvl = rte_bit_relaxed_get32(ctrl_lvl2, &disp_mgt->ctrl_lvl);		\
+	if (_msg_type >= 0 && _msg_resp != NULL && _ctrl_lvl)					\
+		ret += chan_ops->register_msg(NBL_DISP_MGT_TO_CHAN_PRIV(disp_mgt),		\
+					      _msg_type, _msg_resp, disp_mgt);			\
+} while (0)

WARNING:MACRO_ARG_UNUSED: Argument 'res_func' is not used in function-like macro
#518: FILE: drivers/net/nbl/nbl_dispatch.c:373:
+#define NBL_DISP_SET_OPS(disp_op, res_func, ctrl_lvl2, msg_type, msg_req, msg_resp)		\
+do {												\
+	typeof(msg_type) _msg_type = (msg_type);						\
+	typeof(msg_resp) _msg_resp = (msg_resp);						\
+	uint32_t _ctrl_lvl = rte_bit_relaxed_get32(ctrl_lvl2, &disp_mgt->ctrl_lvl);		\
+	if (_msg_type >= 0 && _msg_resp != NULL && _ctrl_lvl)					\
+		ret += chan_ops->register_msg(NBL_DISP_MGT_TO_CHAN_PRIV(disp_mgt),		\
+					      _msg_type, _msg_resp, disp_mgt);			\
+} while (0)

WARNING:MACRO_ARG_UNUSED: Argument 'msg_req' is not used in function-like macro
#518: FILE: drivers/net/nbl/nbl_dispatch.c:373:
+#define NBL_DISP_SET_OPS(disp_op, res_func, ctrl_lvl2, msg_type, msg_req, msg_resp)		\
+do {												\
+	typeof(msg_type) _msg_type = (msg_type);						\
+	typeof(msg_resp) _msg_resp = (msg_resp);						\
+	uint32_t _ctrl_lvl = rte_bit_relaxed_get32(ctrl_lvl2, &disp_mgt->ctrl_lvl);		\
+	if (_msg_type >= 0 && _msg_resp != NULL && _ctrl_lvl)					\
+		ret += chan_ops->register_msg(NBL_DISP_MGT_TO_CHAN_PRIV(disp_mgt),		\
+					      _msg_type, _msg_resp, disp_mgt);			\
+} while (0)

WARNING:MACRO_ARG_UNUSED: Argument 'msg_type' is not used in function-like macro
#544: FILE: drivers/net/nbl/nbl_dispatch.c:399:
+#define NBL_DISP_SET_OPS(disp_op, res_func, ctrl, msg_type, msg_req, msg_resp)		\
+do {											\
+	disp_ops->NBL_NAME(disp_op) =							\
+		rte_bit_relaxed_get32(ctrl, &disp_mgt->ctrl_lvl) ? res_func : msg_req; ;\
+} while (0)

WARNING:MACRO_ARG_UNUSED: Argument 'msg_resp' is not used in function-like macro
#544: FILE: drivers/net/nbl/nbl_dispatch.c:399:
+#define NBL_DISP_SET_OPS(disp_op, res_func, ctrl, msg_type, msg_req, msg_resp)		\
+do {											\
+	disp_ops->NBL_NAME(disp_op) =							\
+		rte_bit_relaxed_get32(ctrl, &disp_mgt->ctrl_lvl) ? res_func : msg_req; ;\
+} while (0)

total: 0 errors, 5 warnings, 0 checks, 793 lines checked

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-08-19 10:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20250819102237.3067518-7-dimon.zhao@nebula-matrix.com>
2025-08-19 10:23 ` |WARNING| pw155992 [PATCH v5 06/17] net/nbl: add Dispatch layer definitions and implementation checkpatch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).