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 135FAA0093; Fri, 20 May 2022 22:24:30 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F3B8B42684; Fri, 20 May 2022 22:24:29 +0200 (CEST) Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) by mails.dpdk.org (Postfix) with ESMTP id D4E7240156 for ; Fri, 20 May 2022 22:24:28 +0200 (CEST) Received: by mail-pl1-f179.google.com with SMTP id m1so8257062plx.3 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=5PSXmL9RTY7uu2lx3sTSS9Zq1oRMip3MCs3C3Z7F5kkLP7SOkEaM2jhHIaMpGE1ngy 8fi9eOoViWKnu8zxix9sXER9Zb95JETnED6yKmL6zYpdzL+cQrsI+gEXly47BMgntrea dUXom3rDMEi8626GcClo2Ls0Gm8LKJBoLRQSqR0IzlPjCjALKBXnA80QcDOQM5rirn8x 2YPfwfzPweEBwJe+kOWVKwp2teclqq0Cv2HC53UP9pnf3GzT44HWUalEi+3WtAVW9fmt B3K5ieFtXwwGAxQC7iED/VUHl8SrS7C1HkZzvameJCVDLYM9HRW5zPnjJCBKSVf48V2c EclQ== X-Gm-Message-State: AOAM5301Dsj32Lhv/EAf4mG+rev/+/ngFxP9FDI1xItfEItQJ7WVcUJv 02op50qEWvU/5sahgN4ObBmC8Qeg9DeOYQ== 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: 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: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.