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 B4B8DA0553 for ; Fri, 10 Jun 2022 15:11:52 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9162140689; Fri, 10 Jun 2022 15:11:52 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id C240440689 for ; Fri, 10 Jun 2022 15:11:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1654866711; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=emmG5cP3QB8JJgD9XeW+4KAPbEUXGo094Qk42UtUhOc=; b=eCfsM/D1Wp5xqWs/7QtgVb7Sz5gXmENYx347NFkOdac69K63kDeC2Kc1ejVB6xq6GTWnRX 6v8yLInl4/loDCiz+dLIrORb7Eiwy79vBpX9l3JPvhACEtMq+0M+KIp6WXeEZnNtnat8Lc 0HbENLT5U8UwlVpI7/y3CaC6HD1JT+A= Received: from mail-lj1-f198.google.com (mail-lj1-f198.google.com [209.85.208.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-61-V9J2tGMENLyG1R4SgDn9_g-1; Fri, 10 Jun 2022 09:11:50 -0400 X-MC-Unique: V9J2tGMENLyG1R4SgDn9_g-1 Received: by mail-lj1-f198.google.com with SMTP id h23-20020a2e3a17000000b00255788e9a7fso4586086lja.10 for ; Fri, 10 Jun 2022 06:11:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=emmG5cP3QB8JJgD9XeW+4KAPbEUXGo094Qk42UtUhOc=; b=txIo8fbnZ7Q3EfZ5SbnwMN23F8Do4X7ZDsZIqq50vj01DQ4i4D+RDyL/b2W7cMobJu Z/Q4wPfFEd/Pz1FMNuf6tyjnEa8tPrrRJQeYbiw53etdozwT83oND2uRmXk9SCirq49B H07ZDk4xdYxJamlhesveMz2Wjb014CAJeHAJ8RAfOVQCt5paMTM143Y1nam8nugWj3RQ 4M5SFog8wbmDG6BLO0zCo3qWvbqAAmndDoNlG0x8YUmEsOmeie1N9aqtD8H8Wp1obPmQ GAiAl8rQG172r+SDB+yIPBmpsZmKVroU+aog/MwjeC+msEtvaskcWVcEpScyAEnXYgDa +duw== X-Gm-Message-State: AOAM530APNj7tgysP3TWs7+AmahBi05Yhl415CX/bWS6Vf0AR24LB3gM m1gnjQ7PK1xLFaboYUJnzDDIWcA1g4T0mg7+dHppak5hdCYJxtQd0frshF2NoEq/7ms7QJ1YOsb GE6t99y6w9BRoux8k8Zwu3Jc= X-Received: by 2002:ac2:4c15:0:b0:479:cb6:f8da with SMTP id t21-20020ac24c15000000b004790cb6f8damr27440358lfq.484.1654866708630; Fri, 10 Jun 2022 06:11:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyC+OeAQFl707v+w4Kg/YcQXFzvb9I1vFyNwQ7+TJxrt+7pxhIcox0aPeaX9KioWmyvSnKY2rEqflbv0OTICuU= X-Received: by 2002:ac2:4c15:0:b0:479:cb6:f8da with SMTP id t21-20020ac24c15000000b004790cb6f8damr27440346lfq.484.1654866708443; Fri, 10 Jun 2022 06:11:48 -0700 (PDT) MIME-Version: 1.0 References: <20220518101657.1230416-1-david.marchand@redhat.com> <20220518101657.1230416-2-david.marchand@redhat.com> In-Reply-To: <20220518101657.1230416-2-david.marchand@redhat.com> From: David Marchand Date: Fri, 10 Jun 2022 15:11:37 +0200 Message-ID: Subject: Re: [PATCH 01/12] common/cpt: fix build with GCC 12 To: Anoob Joseph , Ankur Dwivedi Cc: Thomas Monjalon , Ferruh Yigit , dpdk stable , dev , Akhil Goyal , Jerin Jacob Kollanukkaran Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dmarchan@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com 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 Hello maintainers, On Wed, May 18, 2022 at 12:17 PM David Marchand wrote: > > GCC 12 raises the following warning: > > 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/common/cpt/cpt_ucode.h:2176:8, > inlined from =E2=80=98cpt_fc_enc_hmac_prep=E2=80=99 at > ../drivers/common/cpt/cpt_ucode.h:2475:3, > inlined from =E2=80=98fill_digest_params=E2=80=99 at > ../drivers/common/cpt/cpt_ucode.h:3548:14, > inlined from =E2=80=98otx_cpt_enq_single_sym=E2=80=99 at > ../drivers/crypto/octeontx/otx_cryptodev_ops.c:541:9, > inlined from =E2=80=98otx_cpt_enq_single_sym_sessless=E2=80=99 at > ../drivers/crypto/octeontx/otx_cryptodev_ops.c:584:8, > inlined from =E2=80=98otx_cpt_enq_single=E2=80=99 at > ../drivers/crypto/octeontx/otx_cryptodev_ops.c:611:11, > inlined from =E2=80=98otx_cpt_pkt_enqueue=E2=80=99 at > ../drivers/crypto/octeontx/otx_cryptodev_ops.c:643:9, > inlined from =E2=80=98otx_cpt_enqueue_sym=E2=80=99 at > ../drivers/crypto/octeontx/otx_cryptodev_ops.c:668:9: > ../drivers/common/cpt/cpt_ucode.h:415:36: error: array subscript 0 is > outside array bounds of =E2=80=98buf_ptr_t[0]=E2=80=99 {aka =E2= =80=98struct buf_ptr[]=E2=80=99} > [-Werror=3Darray-bounds] > 415 | e_dma_addr =3D bufs[j].dma_addr; > | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ > ../drivers/common/cpt/cpt_ucode.h:416:48: error: array subscript 0 is > outside array bounds of =E2=80=98buf_ptr_t[0]=E2=80=99 {aka =E2= =80=98struct buf_ptr[]=E2=80=99} > [-Werror=3Darray-bounds] > 416 | e_len =3D (size > bufs[j].size) ? > | ~~~~~~~^~~~~ > > For now, waive this warning until we have a proper fix. Both common/cpt and crypto/cnxk have the same code that triggers this warni= ng. Can you look into this please? Thanks. --=20 David Marchand