From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id B48DEA3201 for ; Mon, 21 Oct 2019 02:24:51 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8AC03F3E; Mon, 21 Oct 2019 02:24:51 +0200 (CEST) Received: by dpdk.org (Postfix, from userid 1017) id 2123814EC; Mon, 21 Oct 2019 02:24:48 +0200 (CEST) In-Reply-To: <20191021002300.26497-4-honnappa.nagarahalli@arm.com> References: <20191021002300.26497-4-honnappa.nagarahalli@arm.com> To: test-report@dpdk.org Cc: Honnappa Nagarahalli Message-Id: <20191021002448.2123814EC@dpdk.org> Date: Mon, 21 Oct 2019 02:24:48 +0200 (CEST) From: checkpatch@dpdk.org Subject: [dpdk-test-report] |WARNING| pw61491 [RFC v6 3/6] test/ring: add functional tests for configurable element size ring X-BeenThere: test-report@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: automatic DPDK test reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: test-report-bounces@dpdk.org Sender: "test-report" Test-Label: checkpatch Test-Status: WARNING http://dpdk.org/patch/61491 _coding style issues_ ERROR:MULTISTATEMENT_MACRO_USE_DO_WHILE: Macros starting with if should be enclosed by a do - while loop to avoid possible if/else logic defects #123: FILE: app/test/test_ring_elem.c:61: +#define TEST_RING_VERIFY(exp) \ + if (!(exp)) { \ + printf("error at %s:%d condition " #exp " failed ", \ + __func__, __LINE__); \ + rte_ring_dump(stdout, r); \ + return -1; \ + } WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided #123: FILE: app/test/test_ring_elem.c:61: +#define TEST_RING_VERIFY(exp) \ + if (!(exp)) { \ + printf("error at %s:%d condition " #exp " failed ", \ + __func__, __LINE__); \ + rte_ring_dump(stdout, r); \ + return -1; \ + } WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned' #139: FILE: app/test/test_ring_elem.c:77: + unsigned i, rand; WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned' #140: FILE: app/test/test_ring_elem.c:78: + const unsigned rsz = RING_SIZE - 1; WARNING:CONSTANT_COMPARISON: Comparisons should place the constant on the right side of the test #144: FILE: app/test/test_ring_elem.c:82: + for (i = 0; TEST_RING_FULL_EMTPY_ITER != i; i++) { WARNING:CONSTANT_COMPARISON: Comparisons should place the constant on the right side of the test #157: FILE: app/test/test_ring_elem.c:95: + TEST_RING_VERIFY(0 == rte_ring_free_count(r)); WARNING:CONSTANT_COMPARISON: Comparisons should place the constant on the right side of the test #160: FILE: app/test/test_ring_elem.c:98: + TEST_RING_VERIFY(0 == rte_ring_empty(r)); WARNING:CONSTANT_COMPARISON: Comparisons should place the constant on the right side of the test #166: FILE: app/test/test_ring_elem.c:104: + TEST_RING_VERIFY(0 == rte_ring_count(r)); WARNING:CONSTANT_COMPARISON: Comparisons should place the constant on the right side of the test #167: FILE: app/test/test_ring_elem.c:105: + TEST_RING_VERIFY(0 == rte_ring_full(r)); WARNING:CONSTANT_COMPARISON: Comparisons should place the constant on the right side of the test #171: FILE: app/test/test_ring_elem.c:109: + TEST_RING_VERIFY(0 == memcmp(src, dst, rsz)); WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned' #182: FILE: app/test/test_ring_elem.c:120: + unsigned i, num_elems; WARNING:BRACES: braces {} are not necessary for single statement blocks #189: FILE: app/test/test_ring_elem.c:127: + for (i = 0; i < RING_SIZE*2 ; i++) { + src[i] = (void *)(unsigned long)i; + } ERROR:SPACING: spaces required around that '<' (ctx:VxV) #295: FILE: app/test/test_ring_elem.c:233: + for (i = 0; i