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 4DB46A0554 for ; Sat, 11 Jun 2022 17:34:13 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 44FD04161A; Sat, 11 Jun 2022 17:34:13 +0200 (CEST) Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) by mails.dpdk.org (Postfix) with ESMTP id D29244069C for ; Sat, 11 Jun 2022 17:34:11 +0200 (CEST) Received: by mail-pl1-f171.google.com with SMTP id h1so1600083plf.11 for ; Sat, 11 Jun 2022 08:34:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=p3ErOi7Fczx9xRMUCGLWsaCLjgSMaORAb8KmoZ5blvU=; b=U91C65oPOzAtvO4VZT2agljcDKwptkYI+DFTlSbGnSW1KVtJptoD5WvAoBizaJhkTn MelERHO9004KyBe7jSBX9ImTlGyGaEWe+m09uEsAFPrnNHHVilBhcqBT/WhS7gSW6m5p 9Z7V2adcQ04XP20WAOsTGCaYQsRzqRcL5BtQlfvKthfJnPiwCkPWgMTpeXe9nfTv3gcL MCw+vCgPYdJrF61kOaqgNQqdNhyRQQ9qyYIIicmoUD84mg5v+UVf2j5zNW3wVaWpeXcL x0MgLw803hfIW1xt00j3FHtsgTytdyv025nawhpvBCZ+T5peiNWNs/qTQx4eI93JOaF4 ydCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=p3ErOi7Fczx9xRMUCGLWsaCLjgSMaORAb8KmoZ5blvU=; b=ahDMSVlOB9QXHE180fZI6D1mXykWl1azYcuOcFiKJziZ56YQF1UsEP+JSRv3oCWNEq no5V9xk4TSaXc5UjO2z70cmnpWT8al/HlG05rhMvfqhE9KEn+ZWLyJ54kiF8tN6wbboH GynGNC9lEFbkQodqPHViGoJ1yCBAlKU7o0rdrOS3r0DJi7n0yDb7JER+DZd/E+coxJxk ycFjwnf8VEGuoHTNx7CbiBbCMrWlO6BuRjoQDn+AtbJVyRm3nIoiNh6GUm66lhy4J5Nt 6Pc3qmiNY8W62EcsQ+YDPIn7/VPLfsAGfpWgVak/7MX9AIgWUuvRdufl3lc1iUgPea2e 4uTQ== X-Gm-Message-State: AOAM532Dk010zqp4Q9hYEj/9KOvVYTpKGJnP62VzjcbtTjWNKpNbBeZn bsrqcbH5CIuDQFn4mB0fT6wbPg== X-Google-Smtp-Source: ABdhPJzCclerFTVvXB87vlPudGZpNHyFXZwRcEg+HAclruIExBvmf08S1YwA4XD8E/D4s/N6Xu0QtA== X-Received: by 2002:a17:903:2444:b0:167:5fe8:4a16 with SMTP id l4-20020a170903244400b001675fe84a16mr39243718pls.20.1654961650727; Sat, 11 Jun 2022 08:34:10 -0700 (PDT) Received: from hermes.local (204-195-112-199.wavecable.com. [204.195.112.199]) by smtp.gmail.com with ESMTPSA id h12-20020a170902eecc00b001641670d1adsm1676452plb.131.2022.06.11.08.34.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Jun 2022 08:34:10 -0700 (PDT) Date: Sat, 11 Jun 2022 08:34:07 -0700 From: Stephen Hemminger To: David Marchand Cc: dev@dpdk.org, thomas@monjalon.net, ferruh.yigit@xilinx.com, stable@dpdk.org, Fan Zhang , Pablo de Lara , Deepak Kumar Jain Subject: Re: [PATCH 03/12] crypto/ipsec_mb: fix build with GCC 12 Message-ID: <20220611083407.204574a8@hermes.local> In-Reply-To: <20220518101657.1230416-4-david.marchand@redhat.com> References: <20220518101657.1230416-1-david.marchand@redhat.com> <20220518101657.1230416-4-david.marchand@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org On Wed, 18 May 2022 12:16:48 +0200 David Marchand wrote: > GCC 12 raises the following warning: >=20 > In function =E2=80=98__rte_ring_enqueue_elems_64=E2=80=99, > inlined from =E2=80=98__rte_ring_enqueue_elems=E2=80=99 at > ../lib/ring/rte_ring_elem_pvt.h:130:3, > inlined from =E2=80=98__rte_ring_do_hts_enqueue_elem=E2=80=99 at > ../lib/ring/rte_ring_hts_elem_pvt.h:196:3, > inlined from =E2=80=98rte_ring_mp_hts_enqueue_burst_elem=E2=80=99 at > ../lib/ring/rte_ring_hts.h:110:9, > inlined from =E2=80=98rte_ring_enqueue_burst_elem=E2=80=99 at > ../lib/ring/rte_ring_elem.h:577:10, > inlined from =E2=80=98rte_ring_enqueue_burst=E2=80=99 at > ../lib/ring/rte_ring.h:738:9, > inlined from =E2=80=98process_op_bit=E2=80=99 at > ../drivers/crypto/ipsec_mb/pmd_snow3g.c:425:16, > inlined from =E2=80=98snow3g_pmd_dequeue_burst=E2=80=99 at > ../drivers/crypto/ipsec_mb/pmd_snow3g.c:484:20: > ../lib/ring/rte_ring_elem_pvt.h:68:44: error: array subscript 1 is > outside array bounds of =E2=80=98struct rte_crypto_op[0]=E2=80=99 > [-Werror=3Darray-bounds] > 68 | ring[idx + 1] =3D obj[i + 1]; > | ~~~^~~~~~~ > ../drivers/crypto/ipsec_mb/pmd_snow3g.c: In function > =E2=80=98snow3g_pmd_dequeue_burst=E2=80=99: > ../drivers/crypto/ipsec_mb/pmd_snow3g.c:434:1: note: > at offset 8 into object =E2=80=98op=E2=80=99 of size 8 > 434 | snow3g_pmd_dequeue_burst(void *queue_pair, > | ^~~~~~~~~~~~~~~~~~~~~~~~ >=20 > Validate that one (exactly) op has been processed or return early. >=20 > Fixes: b537abdbee74 ("crypto/snow3g: support bit-level operations") > Cc: stable@dpdk.org >=20 > Signed-off-by: David Marchand Acked-by: Stephen Hemminger