automatic DPDK test reports
 help / color / mirror / Atom feed
* [dpdk-test-report] |WARNING| pw43758 [v2, 3/4] eventdev: add eth Tx adapter implementation
       [not found] <1534479652-80182-3-git-send-email-nikhil.rao@intel.com>
@ 2018-08-17  4:22 ` checkpatch
  0 siblings, 0 replies; only message in thread
From: checkpatch @ 2018-08-17  4:22 UTC (permalink / raw)
  To: test-report; +Cc: Nikhil Rao

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

_coding style issues_


WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#94: FILE: lib/librte_eventdev/rte_event_eth_tx_adapter.c:43:
+#define RTE_EVENT_ETH_TX_ADAPTER_ID_VALID_OR_ERR_RET(id, retval) \
+do { \
+	if (!txa_valid_id(id)) { \
+		RTE_EDEV_LOG_ERR("Invalid eth Rx adapter id = %d", id); \
+		return retval; \
+	} \
+} while (0)

WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#102: FILE: lib/librte_eventdev/rte_event_eth_tx_adapter.c:51:
+#define TXA_CHECK_OR_ERR_RET(id) \
+do {\
+	int ret; \
+	RTE_EVENT_ETH_TX_ADAPTER_ID_VALID_OR_ERR_RET((id), -EINVAL); \
+	ret = txa_init(); \
+	if (ret != 0) \
+		return ret; \
+	if (!txa_adapter_exist((id))) \
+		return -EINVAL; \
+} while (0)

total: 0 errors, 2 warnings, 1183 lines checked

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

only message in thread, other threads:[~2018-08-17  4:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1534479652-80182-3-git-send-email-nikhil.rao@intel.com>
2018-08-17  4:22 ` [dpdk-test-report] |WARNING| pw43758 [v2, 3/4] eventdev: add eth Tx adapter 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).