From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9EF0A45EF0 for ; Thu, 19 Dec 2024 23:53:44 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 997A4402D8; Thu, 19 Dec 2024 23:53:44 +0100 (CET) Received: from dpdk.org (dpdk.org [92.243.24.197]) by mails.dpdk.org (Postfix) with ESMTP id 549CD402B1 for ; Thu, 19 Dec 2024 23:53:43 +0100 (CET) Received: by dpdk.org (Postfix, from userid 65534) id 64330121F15; Thu, 19 Dec 2024 23:53:29 +0100 (CET) Subject: |WARNING| pw149321 [PATCH v2 2/5] net/bnxt: fix use after free In-Reply-To: <20241219225253.782792-3-stephen@networkplumber.org> References: <20241219225253.782792-3-stephen@networkplumber.org> To: test-report@dpdk.org From: checkpatch@dpdk.org Cc: Stephen Hemminger Message-Id: <20241219225329.64330121F15@dpdk.org> Date: Thu, 19 Dec 2024 23:53:29 +0100 (CET) X-BeenThere: test-report@dpdk.org X-Mailman-Version: 2.1.29 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 Test-Label: checkpatch Test-Status: WARNING http://dpdk.org/patch/149321 _coding style issues_ CHECK:MACRO_ARG_REUSE: Macro argument reuse 'var' - possible side-effects? #116: FILE: drivers/net/bnxt/bnxt_filter.c:16: +#define STAILQ_FOREACH_SAFE(var, head, field, tvar) \ + for ((var) = STAILQ_FIRST((head)); \ + (var) && ((tvar) = STAILQ_NEXT((var), field), 1); \ + (var) = (tvar)) CHECK:MACRO_ARG_REUSE: Macro argument reuse 'tvar' - possible side-effects? #116: FILE: drivers/net/bnxt/bnxt_filter.c:16: +#define STAILQ_FOREACH_SAFE(var, head, field, tvar) \ + for ((var) = STAILQ_FIRST((head)); \ + (var) && ((tvar) = STAILQ_NEXT((var), field), 1); \ + (var) = (tvar)) total: 0 errors, 0 warnings, 2 checks, 23 lines checked