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 C098AA0553; Sat, 11 Jun 2022 17:34:12 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5F7DB4069C; Sat, 11 Jun 2022 17:34:12 +0200 (CEST) Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) by mails.dpdk.org (Postfix) with ESMTP id D147440150 for ; Sat, 11 Jun 2022 17:34:11 +0200 (CEST) Received: by mail-pl1-f177.google.com with SMTP id f8so1609667plo.9 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=CRuqctLXdh4PcTlQ3pXHHZXuBppDHSuR74GQcbZErRpAMdKv/jvGDq3gptapG36w66 5s7Yfziy6RiTVrhnkja1lqDNCVtNoMrQO4yRtjNIHT4xH9KmmhXCC+zK6w4TEB3Lp9YV 4EwqHeNOg4O62DX0xswiYOjjKG3wJ+8/bQnQSLKqr4r4ePA08m5cOvV9MBFrBnBE/2PB m6KXLIR5ftTn59O6qxOh7itc6CVUzKzEEzqJ/+ju+4bBmXgrJyXZ5Y7t/VoGFGzK4d+2 TTn33V2XFpYKIhqzGAibQKaD56HxPgYJp3PlZAu9N4VIHbfdw2TQoPl3F6G6FeAzblkC 6aVA== X-Gm-Message-State: AOAM533IOH+PoHUl4Bk0i3PhSn3yfbEsSJ5trtND+w80pQ4PhGsY9vAW Wt/tIlZJq9sqRnmY/CxoZo8tWA== 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: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-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