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 5AF4AA04DC for ; Mon, 19 Oct 2020 18:37:42 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 48614A977; Mon, 19 Oct 2020 18:37:41 +0200 (CEST) Received: by dpdk.org (Postfix, from userid 1017) id 400EBE25E; Mon, 19 Oct 2020 18:37:40 +0200 (CEST) In-Reply-To: <20201019163519.28180-4-dharmik.thakkar@arm.com> References: <20201019163519.28180-4-dharmik.thakkar@arm.com> To: test-report@dpdk.org Cc: Dharmik Thakkar Message-Id: <20201019163740.400EBE25E@dpdk.org> Date: Mon, 19 Oct 2020 18:37:40 +0200 (CEST) From: checkpatch@dpdk.org Subject: [dpdk-test-report] |WARNING| pw81394 [PATCH v4 3/3] test/hash: add tests for integrated RCU QSBR 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/81394 _coding style issues_ WARNING:MACRO_WITH_FLOW_CONTROL: Macros with flow control statements should be avoided #82: FILE: app/test/test_hash.c:63: +#define RETURN_IF_ERROR_RCU_QSBR(cond, str, ...) do { \ + if (cond) { \ + printf("ERROR line %d: " str " ", __LINE__, ##__VA_ARGS__); \ + if (rcu_cfg.mode == RTE_HASH_QSBR_MODE_SYNC) { \ + writer_done = 1; \ + /* Wait until reader exited. */ \ + rte_eal_mp_wait_lcore(); \ + } \ + if (g_handle) rte_hash_free(g_handle); \ + if (g_qsv) rte_free(g_qsv); \ + return -1; \ + } \ +} while(0) ERROR:TRAILING_STATEMENTS: trailing statements should be on next line #90: FILE: app/test/test_hash.c:71: + if (g_handle) rte_hash_free(g_handle); \ ERROR:TRAILING_STATEMENTS: trailing statements should be on next line #91: FILE: app/test/test_hash.c:72: + if (g_qsv) rte_free(g_qsv); \ ERROR:SPACING: space required before the open parenthesis '(' #94: FILE: app/test/test_hash.c:75: +} while(0) WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned' #211: FILE: app/test/test_hash.c:1926: + unsigned i; WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned' #381: FILE: app/test/test_hash.c:2096: + unsigned i; WARNING:TYPO_SPELLING: 'nNumber' may be misspelled - perhaps 'number'? #637: FILE: app/test/test_hash_readwrite_lf_perf.c:1331: + printf(" Number of writers: %u ", rwc_core_cnt[n]); total: 3 errors, 4 warnings, 639 lines checked