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 75191A0509 for ; Sun, 8 May 2022 08:30:06 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 70EF640DDB; Sun, 8 May 2022 08:30:06 +0200 (CEST) Received: from dpdk.org (dpdk.org [92.243.24.197]) by mails.dpdk.org (Postfix) with ESMTP id 6C2854069D for ; Sun, 8 May 2022 08:30:05 +0200 (CEST) Received: by dpdk.org (Postfix, from userid 65534) id 61C901242E3; Sun, 8 May 2022 08:30:05 +0200 (CEST) Subject: |WARNING| pw110860 [PATCH v4 19/28] net/cnxk: optimize Rx fast path for security pkts In-Reply-To: <20220508062616.3398-19-ndabilpuram@marvell.com> References: <20220508062616.3398-19-ndabilpuram@marvell.com> To: test-report@dpdk.org From: checkpatch@dpdk.org Cc: Nithin Dabilpuram Message-Id: <20220508063005.61C901242E3@dpdk.org> Date: Sun, 8 May 2022 08:30:05 +0200 (CEST) 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/110860 _coding style issues_ CHECK:MACRO_ARG_REUSE: Macro argument reuse '_mbuf' - possible side-effects? #402: FILE: drivers/net/cnxk/cn10k_rx.h:953: +#define NIX_PUSH_META_TO_FREE(_mbuf, _laddr, _loff_p) \ + do { \ + *(uint64_t *)((_laddr) + (*(_loff_p) << 3)) = (uint64_t)_mbuf; \ + *(_loff_p) = *(_loff_p) + 1; \ + /* Mark meta mbuf as put */ \ + RTE_MEMPOOL_CHECK_COOKIES(_mbuf->pool, (void **)&_mbuf, 1, 0); \ + } while (0) CHECK:MACRO_ARG_REUSE: Macro argument reuse '_loff_p' - possible side-effects? #402: FILE: drivers/net/cnxk/cn10k_rx.h:953: +#define NIX_PUSH_META_TO_FREE(_mbuf, _laddr, _loff_p) \ + do { \ + *(uint64_t *)((_laddr) + (*(_loff_p) << 3)) = (uint64_t)_mbuf; \ + *(_loff_p) = *(_loff_p) + 1; \ + /* Mark meta mbuf as put */ \ + RTE_MEMPOOL_CHECK_COOKIES(_mbuf->pool, (void **)&_mbuf, 1, 0); \ + } while (0) total: 0 errors, 0 warnings, 2 checks, 608 lines checked