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 C2576A0521 for ; Tue, 3 Nov 2020 09:31:21 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1BA58C804; Tue, 3 Nov 2020 09:31:18 +0100 (CET) Received: by dpdk.org (Postfix, from userid 1017) id 013F2C808; Tue, 3 Nov 2020 09:31:16 +0100 (CET) In-Reply-To: <20201103082809.41149-6-stevex.yang@intel.com> References: <20201103082809.41149-6-stevex.yang@intel.com> To: test-report@dpdk.org Cc: Steve Yang Message-Id: <20201103083117.013F2C808@dpdk.org> Date: Tue, 3 Nov 2020 09:31:17 +0100 (CET) From: checkpatch@dpdk.org Subject: [dpdk-test-report] |WARNING| pw83500 [RFC v2 5/6] net/ixgbe: 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/83500 _coding style issues_ CHECK:MACRO_ARG_REUSE: Macro argument reuse 'act' - possible side-effects? #82: FILE: drivers/net/ixgbe/ixgbe_flow.c:52: +#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? #82: FILE: drivers/net/ixgbe/ixgbe_flow.c:52: +#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? #82: FILE: drivers/net/ixgbe/ixgbe_flow.c:52: +#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? #91: FILE: drivers/net/ixgbe/ixgbe_flow.c:61: +#define GET_VLAN_ID_FROM_TCI(vlan_item, default_vid) \ + ((vlan_item) ? ntohs((vlan_item)->tci) & 0x0fff : (default_vid)) total: 0 errors, 0 warnings, 4 checks, 269 lines checked