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 50057A0553; Fri, 10 Jun 2022 15:11:53 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B83EB410E5; 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.133.124]) by mails.dpdk.org (Postfix) with ESMTP id EEF1D4069C 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-624-Jbtw6cZ_OkadWyHJVONjFw-1; Fri, 10 Jun 2022 09:11:50 -0400 X-MC-Unique: Jbtw6cZ_OkadWyHJVONjFw-1 Received: by mail-lj1-f198.google.com with SMTP id b12-20020a2ebc0c000000b0025662e0a527so1730952ljf.0 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=S6RDU2RklI/mJXwUr8K1kzST6gdiChQPZNxlMkbtMGIk9VRc5cfvI1j2IZGEqi2Czm Vc5vePmCEzP4bEFdmB9UJaAqyl+yOVRdCk7Orea4XInuyeXH2VK2E6tX01d0053Q/P2V FCS1JshAZNl+HBTmYy5gnLYXRJifC5ddoEqJpdS061ZsDLm0iWMlXE81d3AgXYQBeuYp dYoXIuAtoRguPceYLnWGWTPOU5LDkZrP/hZsCfKDN23Wf/TVI6FTkpHeN7jOJ7pnnNRo DjiM+d9fgKqDWmX7qIk2qOiyrzxSZ38H6De0ps1iRK+B++UVuT6LRUWZ77+8gM59/6y3 zqhQ== X-Gm-Message-State: AOAM530jQwL0uKg/taI7+9NwTJbOYXGE6QgBae7tXglQZltN0NZ17f4e 61NtPGft7LHTlx7XOrK5FJhqZD/bTBUIhyaUzi0CDkUTz9Tw19ryQiUgwl8cDHIOSFBpZFm7yKM iQTfFJxOJ62Z0svop3ow= X-Received: by 2002:ac2:4c15:0:b0:479:cb6:f8da with SMTP id t21-20020ac24c15000000b004790cb6f8damr27440360lfq.484.1654866708631; 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: 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 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