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 D1647A0093 for ; Fri, 20 May 2022 22:24:29 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CC44E40156; Fri, 20 May 2022 22:24:29 +0200 (CEST) Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) by mails.dpdk.org (Postfix) with ESMTP id D5A8E40222 for ; Fri, 20 May 2022 22:24:28 +0200 (CEST) Received: by mail-pl1-f173.google.com with SMTP id q4so8241961plr.11 for ; Fri, 20 May 2022 13:24:28 -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=Fe5RFWvaa0v4gBFqLtNL4IV0/k390+BsirDMn6WLuFk=; b=hBxfSCK2mFr/VAtr23wIjg4RNnf/DUdbpjijfeDtPiZlf65v2RbeSY1vk0qYlkwaNF J9+5Tm6HBEvBe+YQ/AI8LgeSjKMLfjkAL1nXSBXhdzK4CBcSKiVfpC1Q762ELpkEvf4d gcxC8HTBS6o07nGCxCoHbuRaexYfMHkFX7DvmLW6WYRfyNHeGNCUNCpZ5+6IAzHt6d21 tQZrpTqWHeLHbvuVX2sQZuHTMcMG1fzySM6FW16nT3UBNtSeY3usqEHpqKGl9eozopG7 uXA3FU3mhtv8Ex50Dqv6xVBUtKxOLYmPbywXHm1LVXvROC/D8+yvHu5yb2RnqV0Iq1Ux kOhg== 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=Fe5RFWvaa0v4gBFqLtNL4IV0/k390+BsirDMn6WLuFk=; b=3Sc1M9atmMKzMx1g9TR+jLFo1QoC2mjdDKLoHo2NIydLE+tu/RDJ0BU6tsXWr/Rc1m Mn7lD4MNeCjt75mmRdKQ1PU1AAomNLIS1Dl2Burf0yksjRuIoP6imIBi7FqRl0giAR/9 ltT4QwJNVCJqLOTy4xCqERUbHwKN0p7BBBsiK0hNItS8+aQyCI4NfApaopU4KMaPlvbV N8TSYmMydbu8/CA5Xci5Itg8WdRwh4ZSQg+kN2PDFDWTH9emet0yGdZT++sOSov6oWOp x+fL60WrHzAVx455zcMAOFNr4QtBGc4RHXF2dZCz1A7+HgXD7KsrqUGk7faYIRhdRPnH rK3A== X-Gm-Message-State: AOAM530b6AKtcNQ115eljE+anT2U1kEe6zp+MI1oMFm7I61X2dAa1fWc B22eFVMLokkISsfg2k6q/qGNEg== X-Google-Smtp-Source: ABdhPJzP2xaNHDkFkYyDdSZtZUPrAyPdGhMISjAdKVZ57hYO3p/Mk7RNBacAjbEpwtzWuYYdgmBHuA== X-Received: by 2002:a17:902:d707:b0:15f:42a:bc62 with SMTP id w7-20020a170902d70700b0015f042abc62mr11247147ply.98.1653078268089; Fri, 20 May 2022 13:24:28 -0700 (PDT) Received: from hermes.local (204-195-112-199.wavecable.com. [204.195.112.199]) by smtp.gmail.com with ESMTPSA id x22-20020aa784d6000000b0050e0dadb28dsm2194207pfn.205.2022.05.20.13.24.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 May 2022 13:24:27 -0700 (PDT) Date: Fri, 20 May 2022 13:24:25 -0700 From: Stephen Hemminger To: David Marchand Cc: dev@dpdk.org, thomas@monjalon.net, ferruh.yigit@xilinx.com, stable@dpdk.org, Ankur Dwivedi , Anoob Joseph , Tejasree Kondoj Subject: Re: [PATCH 02/12] crypto/cnxk: fix build with GCC 12 Message-ID: <20220520132425.5245fa1e@hermes.local> In-Reply-To: <20220518101657.1230416-3-david.marchand@redhat.com> References: <20220518101657.1230416-1-david.marchand@redhat.com> <20220518101657.1230416-3-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:47 +0200 David Marchand wrote: > GCC 12 raises the following warning: >=20 > In file included from ../drivers/crypto/cnxk/cn10k_cryptodev_ops.c:17: > In function =E2=80=98fill_sg_comp_from_iov=E2=80=99, > inlined from =E2=80=98cpt_kasumi_enc_prep=E2=80=99 at > ../drivers/crypto/cnxk/cnxk_se.h:1413:8, > inlined from =E2=80=98cpt_fc_enc_hmac_prep=E2=80=99 at > ../drivers/crypto/cnxk/cnxk_se.h:1635:9, > inlined from =E2=80=98fill_digest_params=E2=80=99 at > ../drivers/crypto/cnxk/cnxk_se.h:2524:8, > inlined from =E2=80=98cpt_sym_inst_fill=E2=80=99 at > ../drivers/crypto/cnxk/cn10k_cryptodev_ops.c:92:9, > inlined from =E2=80=98cn10k_cpt_fill_inst.constprop.isra=E2=80=99 at > ../drivers/crypto/cnxk/cn10k_cryptodev_ops.c:146:10: > ../drivers/crypto/cnxk/cnxk_se.h:208:52: error: array subscript 0 is > outside array bounds of =E2=80=98struct roc_se_buf_ptr[0]=E2=80=99 > [-Werror=3Darray-bounds] > 208 | e_vaddr =3D (uint64_t)bufs[j].vaddr; > | ~~~~~~~^~~~~~ > ../drivers/crypto/cnxk/cnxk_se.h:209:48: error: array subscript 0 is > outside array bounds of =E2=80=98struct roc_se_buf_ptr[0]=E2=80=99 > [-Werror=3Darray-bounds] > 209 | e_len =3D (size > bufs[j].size) ? bufs[j].size : size; > | ~~~~~~~^~~~~ >=20 > For now, waive this warning until we have a proper fix. >=20 > Cc: stable@dpdk.org >=20 > Signed-off-by: David Marchand If you fix iov_ptr_t to be flexible array this won't be needed.