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 6C066A0613 for ; Tue, 27 Aug 2019 09:15:51 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 659F61BFE3; Tue, 27 Aug 2019 09:15:51 +0200 (CEST) Received: by dpdk.org (Postfix, from userid 1017) id 0922D1C028; Tue, 27 Aug 2019 09:15:50 +0200 (CEST) In-Reply-To: <20190827070730.11206-31-sachin.saxena@nxp.com> References: <20190827070730.11206-31-sachin.saxena@nxp.com> To: test-report@dpdk.org Cc: Sachin Saxena Message-Id: <20190827071550.0922D1C028@dpdk.org> Date: Tue, 27 Aug 2019 09:15:50 +0200 (CEST) From: checkpatch@dpdk.org Subject: [dpdk-test-report] |WARNING| pw58025 [PATCH v1 30/30] net/dpaa2: add soft parser driver 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/58025 _coding style issues_ CHECK:MACRO_ARG_REUSE: Macro argument reuse 'pr' - possible side-effects? #260: FILE: drivers/net/dpaa2/dpaa2_sparser.c:148: +#define SWAP_WORD(pr) \ +do { \ + for (int i = 0; i < 4 ; i++) { \ + pr[i] = pr[i] ^ pr[6 - i + 1]; \ + pr[6 - i + 1] = pr[6 - i + 1] ^ pr[i]; \ + pr[i] = pr[i] ^ pr[6 - i + 1]; \ + } \ +} while (0) CHECK:MACRO_ARG_REUSE: Macro argument reuse 'priv' - possible side-effects? #407: FILE: drivers/net/dpaa2/dpaa2_sparser.h:20: +#define WRIOP_SS_INITIALIZER(priv) \ +do { \ + /* Base offset of parse profile memory in WRIOP */ \ + (priv)->ss_offset = 0x20; \ + (priv)->ss_iova = (size_t)NULL; \ + (priv)->ss_param_iova = (size_t)NULL; \ +} while (0) CHECK:MACRO_ARG_REUSE: Macro argument reuse '_mask' - possible side-effects? #586: FILE: drivers/net/dpaa2/dpaa2_sparser.h:199: +#define IS_ONE_BIT_FIELD(_mask) \ +(!((_mask) & ((_mask) - 1)) || (_mask == 1)) total: 0 errors, 0 warnings, 3 checks, 541 lines checked