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 6A31FA00C2 for ; Fri, 17 Jun 2022 14:08:12 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 63E4F40DDD; Fri, 17 Jun 2022 14:08:12 +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 3C09040DDD for ; Fri, 17 Jun 2022 14:08:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1655467690; 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=k7R+NcMIPB3yaOdWNW+6PaZHrjk2/71yXDUStjC7ihI=; b=VfvcFuGED6WmiXzDguZOao7DM2eiY98Bci+5EO5cP4/ewd0RWC8pupd/U44rbD97boGQ6d 7xa45yKt3WHFEJbgW1caIDmQH3Q+DQAFTBFaWb0Kl39l4qcY6H3PgMbCAabECOPShcZSDY 57cmOXEjv/uXroKb6gP/LJEjfPJI5wU= Received: from mail-lf1-f71.google.com (mail-lf1-f71.google.com [209.85.167.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-34-hLsXqKeENc6mlSxR2Zf2BA-1; Fri, 17 Jun 2022 08:08:09 -0400 X-MC-Unique: hLsXqKeENc6mlSxR2Zf2BA-1 Received: by mail-lf1-f71.google.com with SMTP id a29-20020a194f5d000000b004790a4ba4bdso2291821lfk.11 for ; Fri, 17 Jun 2022 05:08:09 -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=k7R+NcMIPB3yaOdWNW+6PaZHrjk2/71yXDUStjC7ihI=; b=U6P0UPeo/dtmerdGfjOIfhaF/afSzAmiu44GYDe9su83wCjFOnuY9+hZWhNBJd5egA z0zkoV6801x6ZZ00haM7VMxQtu7Ia+R9yPzwr9AG511tRtsTOOSVZP8Wbd8CYQ2ms/sd q668oe9m74zlR15Wqwr6yrATKKpnihLK+IvM6pS+moyTPS5dpkIMiQkVFXbHLf2BJBm9 xa4r4z0ThfPiG/cT1hvWXZDwjsxbEWMHfpPj7wZlTHsduqpd58mrLktNPOmwQgWmqnjo BDpSrjgt3CEYBWQMUEcJEn8zRukbVHqhv+EsI3pzT81gMrvHBNSXkbXNUeL7Gs0WBMXG d7Bw== X-Gm-Message-State: AJIora8JsNDoW+fVcdXbQW1OGIPYKOdKO1ys2nb09XhVUkAC5kHAg/IQ SzITNdnGHeN75+FuLAHsksW54lqoY5ltOui0O57d1ncxt2upKBThL4FuV0dfRdMqMbgEr4bLB2K ytoTcKDoRLgTNg8rS5fXDoyI= X-Received: by 2002:ac2:4a70:0:b0:47f:5738:aec2 with SMTP id q16-20020ac24a70000000b0047f5738aec2mr621735lfp.499.1655467688241; Fri, 17 Jun 2022 05:08:08 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tKp2U7EDlbzsEv8xXX0+FYHwapeHXXot1BL6vfWXbD/pMMGkY2KbViUcoDQxkHCCBt0xyjUSyWsBt+hFLE6nI= X-Received: by 2002:ac2:4a70:0:b0:47f:5738:aec2 with SMTP id q16-20020ac24a70000000b0047f5738aec2mr621719lfp.499.1655467687953; Fri, 17 Jun 2022 05:08:07 -0700 (PDT) MIME-Version: 1.0 References: <20220617061432.2685-1-adwivedi@marvell.com> <20220617061432.2685-2-adwivedi@marvell.com> In-Reply-To: <20220617061432.2685-2-adwivedi@marvell.com> From: David Marchand Date: Fri, 17 Jun 2022 14:07:57 +0200 Message-ID: Subject: Re: [PATCH 1/2] common/cpt: fix compilation with GCC 12 To: Ankur Dwivedi Cc: dev , Anoob Joseph , Akhil Goyal , Tejasree Kondoj , Jerin Jacob Kollanukkaran , dpdk stable 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 On Fri, Jun 17, 2022 at 8:15 AM Ankur Dwivedi wrote: > > The following warning is observed with GCC 12 compilation: > > In function =E2=80=98fill_sg_comp_from_iov=E2=80=99, > inlined from =E2=80=98cpt_zuc_snow3g_enc_prep=E2=80=99 at > ../drivers/common/cpt/cpt_ucode.h:1672:9, > inlined from =E2=80=98cpt_fc_enc_hmac_prep=E2=80=99 at > ../drivers/common/cpt/cpt_ucode.h:2472: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: warning: array subscript 0 is > outside array bounds of =E2=80=98buf_ptr_t[0]=E2=80=99 {aka =E2=80=98stru= ct buf_ptr[]=E2=80=99} > [-Warray-bounds] > 415 | e_dma_addr =3D bufs[j].dma_addr; > | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ > ../drivers/common/cpt/cpt_ucode.h:416:48: warning: array subscript 0 is > outside array bounds of =E2=80=98buf_ptr_t[0]=E2=80=99 {aka =E2=80=98stru= ct buf_ptr[]=E2=80=99} > [-Warray-bounds] > 416 | e_len =3D (size > bufs[j].size) ? > | ~~~~~~~^~~~~ > > This patch resolves the warning. > Bugzilla ID: 861 > Fixes: 9be415daf469 ("common/cpt: add common defines for microcode") > Fixes: b74652f3a91f ("common/cpt: add microcode interface for encryption"= ) Nit: No need for this blank line. > Cc: stable@dpdk.org > > Signed-off-by: Ankur Dwivedi > Reviewed-by: Anoob Joseph > Reviewed-by: Jerin Jacob Kollanukkaran --=20 David Marchand