[dpdk-test-report] |WARNING| pw31733 [PATCH RFC v4 2/4] eventtimer: add common code

checkpatch at dpdk.org checkpatch at dpdk.org
Tue Nov 28 18:42:27 CET 2017


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

_coding style issues_


WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#148: FILE: lib/librte_eventdev/rte_event_timer_adapter.c:57:
+#define ADAPTER_VALID_OR_ERR_RET(adapter, retval) do { \
+	if (!adapter_valid(adapter))		       \
+		return retval;			       \
+} while (0)

WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#153: FILE: lib/librte_eventdev/rte_event_timer_adapter.c:62:
+#define FUNC_PTR_OR_ERR_RET(func, errval) do { \
+	if ((func) == NULL)		       \
+		return errval;		       \
+} while (0)

WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#158: FILE: lib/librte_eventdev/rte_event_timer_adapter.c:67:
+#define FUNC_PTR_OR_NULL_RET_WITH_ERRNO(func, errval) do { \
+	if ((func) == NULL) {				   \
+		rte_errno = errval;			   \
+		return NULL;				   \
+	}						   \
+} while (0)

total: 0 errors, 3 warnings, 668 lines checked


More information about the test-report mailing list