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 E6D7DA04DC for ; Mon, 19 Oct 2020 11:09:07 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 781E8C932; Mon, 19 Oct 2020 11:09:06 +0200 (CEST) Received: by dpdk.org (Postfix, from userid 1017) id C6CC1C920; Mon, 19 Oct 2020 11:09:05 +0200 (CEST) In-Reply-To: <20201019085415.82207-37-jiawenwu@trustnetic.com> References: <20201019085415.82207-37-jiawenwu@trustnetic.com> To: test-report@dpdk.org Cc: Jiawen Wu Message-Id: <20201019090905.C6CC1C920@dpdk.org> Date: Mon, 19 Oct 2020 11:09:05 +0200 (CEST) From: checkpatch@dpdk.org Subject: [dpdk-test-report] |WARNING| pw81320 [PATCH v4 36/58] net/txgbe: add VLAN handle support 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/81320 _coding style issues_ CHECK:MACRO_ARG_REUSE: Macro argument reuse 'q' - possible side-effects? #218: FILE: drivers/net/txgbe/txgbe_ethdev.c:46: +#define TXGBE_SET_HWSTRIP(h, q) do {\ + uint32_t idx = (q) / (sizeof((h)->bitmap[0]) * NBBY); \ + uint32_t bit = (q) % (sizeof((h)->bitmap[0]) * NBBY); \ + (h)->bitmap[idx] |= 1 << bit;\ + } while (0) CHECK:MACRO_ARG_REUSE: Macro argument reuse 'q' - possible side-effects? #224: FILE: drivers/net/txgbe/txgbe_ethdev.c:52: +#define TXGBE_CLEAR_HWSTRIP(h, q) do {\ + uint32_t idx = (q) / (sizeof((h)->bitmap[0]) * NBBY); \ + uint32_t bit = (q) % (sizeof((h)->bitmap[0]) * NBBY); \ + (h)->bitmap[idx] &= ~(1 << bit);\ + } while (0) CHECK:MACRO_ARG_REUSE: Macro argument reuse 'q' - possible side-effects? #230: FILE: drivers/net/txgbe/txgbe_ethdev.c:58: +#define TXGBE_GET_HWSTRIP(h, q, r) do {\ + uint32_t idx = (q) / (sizeof((h)->bitmap[0]) * NBBY); \ + uint32_t bit = (q) % (sizeof((h)->bitmap[0]) * NBBY); \ + (r) = (h)->bitmap[idx] >> bit & 1;\ + } while (0) total: 0 errors, 0 warnings, 3 checks, 586 lines checked