From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by dpdk.org (Postfix, from userid 1017) id 8D146532C; Thu, 30 Nov 2017 10:48:03 +0100 (CET) In-Reply-To: <20171130094657.11470-10-zhiyong.yang@intel.com> References: <20171130094657.11470-10-zhiyong.yang@intel.com> To: test-report@dpdk.org Cc: Zhiyong Yang Message-Id: <20171130094803.8D146532C@dpdk.org> Date: Thu, 30 Nov 2017 10:48:03 +0100 (CET) From: checkpatch@dpdk.org Subject: [dpdk-test-report] |WARNING| pw31793 [PATCH 09/11] net/vhostpci: add TX function 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: , X-List-Received-Date: Thu, 30 Nov 2017 09:48:03 -0000 Test-Label: checkpatch Test-Status: WARNING http://dpdk.org/patch/31793 _coding style issues_ CHECK:MACRO_ARG_REUSE: Macro argument reuse 'var' - possible side-effects? #33: FILE: drivers/net/vhostpci/vhostpci_ethdev.c:57: +#define ASSIGN_UNLESS_EQUAL(var, val) do { \ + if ((var) != (val)) \ + (var) = (val); \ +} while (0) CHECK:MACRO_ARG_REUSE: Macro argument reuse 'val' - possible side-effects? #33: FILE: drivers/net/vhostpci/vhostpci_ethdev.c:57: +#define ASSIGN_UNLESS_EQUAL(var, val) do { \ + if ((var) != (val)) \ + (var) = (val); \ +} while (0) total: 0 errors, 0 warnings, 2 checks, 376 lines checked