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 04C0AA0613 for ; Mon, 26 Aug 2019 12:55:26 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id EAF8F1D176; Mon, 26 Aug 2019 12:55:25 +0200 (CEST) Received: by dpdk.org (Postfix, from userid 1017) id 484AC1D176; Mon, 26 Aug 2019 12:55:17 +0200 (CEST) In-Reply-To: <20190826105105.19121-42-qi.z.zhang@intel.com> References: <20190826105105.19121-42-qi.z.zhang@intel.com> To: test-report@dpdk.org Cc: Qi Zhang Message-Id: <20190826105517.484AC1D176@dpdk.org> Date: Mon, 26 Aug 2019 12:55:17 +0200 (CEST) From: checkpatch@dpdk.org Subject: [dpdk-test-report] |WARNING| pw57942 [PATCH 41/63] net/ice/base: move and add some help function and macros 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/57942 _coding style issues_ CHECK:MACRO_ARG_REUSE: Macro argument reuse 'b' - possible side-effects? #98: FILE: drivers/net/ice/base/ice_type.h:33: +#define ROUND_UP(a, b) ((b) * DIVIDE_AND_ROUND_UP((a), (b))) CHECK:MACRO_ARG_REUSE: Macro argument reuse 'addr1' - possible side-effects? #138: FILE: drivers/net/ice/base/ice_type.h:141: +#define IS_ETHER_ADDR_EQUAL(addr1, addr2) \ + (((bool)((((u16 *)(addr1))[0] == ((u16 *)(addr2))[0]))) && \ + ((bool)((((u16 *)(addr1))[1] == ((u16 *)(addr2))[1]))) && \ + ((bool)((((u16 *)(addr1))[2] == ((u16 *)(addr2))[2])))) CHECK:MACRO_ARG_REUSE: Macro argument reuse 'addr2' - possible side-effects? #138: FILE: drivers/net/ice/base/ice_type.h:141: +#define IS_ETHER_ADDR_EQUAL(addr1, addr2) \ + (((bool)((((u16 *)(addr1))[0] == ((u16 *)(addr2))[0]))) && \ + ((bool)((((u16 *)(addr1))[1] == ((u16 *)(addr2))[1]))) && \ + ((bool)((((u16 *)(addr1))[2] == ((u16 *)(addr2))[2])))) total: 0 errors, 0 warnings, 3 checks, 93 lines checked