[dpdk-test-report] |WARNING| pw39063 [PATCH v4 3/4] Add autotests for RIB library

checkpatch at dpdk.org checkpatch at dpdk.org
Fri Apr 27 00:05:18 CEST 2018


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

_coding style issues_


WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#102: FILE: test/test/test_rib.c:17:
+#define TEST_RIB_ASSERT(cond) do {				\
+	if (!(cond)) {						\
+		printf("Error at line %d:
", __LINE__);	\
+		return -1;					\
+	}							\
+} while (0)

WARNING:ARRAY_SIZE: Prefer ARRAY_SIZE(tests)
#128: FILE: test/test/test_rib.c:43:
+#define NUM_RIB_TESTS (sizeof(tests)/sizeof(tests[0]))

WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#767: FILE: test/test/test_rib_lpm_comp.c:21:
+#define TEST_RIB_ASSERT(cond) do {				\
+	if (!(cond)) {						\
+		printf("Error at line %d:
", __LINE__);	\
+		return -1;					\
+	}							\
+} while (0)

WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided
#962: FILE: test/test/test_rib_perf.c:21:
+#define TEST_RIB_ASSERT(cond) do {				\
+	if (!(cond)) {						\
+		printf("Error at line %d:
", __LINE__);	\
+		return -1;					\
+	}							\
+} while (0)

total: 0 errors, 4 warnings, 1014 lines checked


More information about the test-report mailing list