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 487F3A0521 for ; Tue, 3 Nov 2020 09:31:13 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D6576C82A; Tue, 3 Nov 2020 09:31:09 +0100 (CET) Received: by dpdk.org (Postfix, from userid 1017) id 591FEC852; Tue, 3 Nov 2020 09:31:08 +0100 (CET) In-Reply-To: <20201103082809.41149-3-stevex.yang@intel.com> References: <20201103082809.41149-3-stevex.yang@intel.com> To: test-report@dpdk.org Cc: Steve Yang Message-Id: <20201103083108.591FEC852@dpdk.org> Date: Tue, 3 Nov 2020 09:31:08 +0100 (CET) From: checkpatch@dpdk.org Subject: [dpdk-test-report] |WARNING| pw83497 [RFC v2 2/6] net/i40e: define the mirror filter parser 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/83497 _coding style issues_ CHECK:MACRO_ARG_REUSE: Macro argument reuse 'act' - possible side-effects? #90: FILE: drivers/net/i40e/i40e_flow.c:1874: +#define NEXT_ITEM_OF_ACTION(act, actions, index) \ + do { \ + act = (actions) + (index); \ + while (act->type == RTE_FLOW_ACTION_TYPE_VOID) { \ + (index)++; \ + act = (actions) + (index); \ + } \ } while (0) CHECK:MACRO_ARG_REUSE: Macro argument reuse 'actions' - possible side-effects? #90: FILE: drivers/net/i40e/i40e_flow.c:1874: +#define NEXT_ITEM_OF_ACTION(act, actions, index) \ + do { \ + act = (actions) + (index); \ + while (act->type == RTE_FLOW_ACTION_TYPE_VOID) { \ + (index)++; \ + act = (actions) + (index); \ + } \ } while (0) CHECK:MACRO_ARG_REUSE: Macro argument reuse 'index' - possible side-effects? #90: FILE: drivers/net/i40e/i40e_flow.c:1874: +#define NEXT_ITEM_OF_ACTION(act, actions, index) \ + do { \ + act = (actions) + (index); \ + while (act->type == RTE_FLOW_ACTION_TYPE_VOID) { \ + (index)++; \ + act = (actions) + (index); \ + } \ } while (0) CHECK:MACRO_ARG_REUSE: Macro argument reuse 'vlan_item' - possible side-effects? #99: FILE: drivers/net/i40e/i40e_flow.c:1883: +#define GET_VLAN_ID_FROM_TCI(vlan_item, default_vid) \ + ((vlan_item) ? ntohs(vlan_item->tci) & 0x0fff : (default_vid)) total: 0 errors, 0 warnings, 285 lines checked