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 E7433A0553 for ; Sat, 11 Jun 2022 17:36:05 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E126340150; Sat, 11 Jun 2022 17:36:05 +0200 (CEST) Received: from mail-pf1-f180.google.com (mail-pf1-f180.google.com [209.85.210.180]) by mails.dpdk.org (Postfix) with ESMTP id DA1B140150 for ; Sat, 11 Jun 2022 17:36:04 +0200 (CEST) Received: by mail-pf1-f180.google.com with SMTP id e11so1987903pfj.5 for ; Sat, 11 Jun 2022 08:36:04 -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=Ysx0gn/jPXDJ0uS1Udyx7BvalhG8NBCJJjfnHYyjF4U=; b=sKM4+XM8Z9LQ8q7wg/ZfkZ4fPAeiQ0p837pTIV/NFJtb8DG9UYwPGrMHh8ZtQCmtM2 lbD+iCXjhGjX2i8JB3FKA0UPCsE5lucYQa2t1MCluqUbgQEG8/Xgxn3OSejLgtviraVb 1IwC3p19K3PaP5d1T/zJ8lPDqthldX1tTF8nbrfDNPeIty4yIuzIi2zQxU9I7HZBjlXe h5XHH7bhYWb1lk/qjV3MSIIj6ccrBR+H+pTlbH5qYoADR1bpwmUUVuIu1TryWOcF39yj 6R7c9OkvK2gn6EYg2iH5R2z/OCEQBjJwaQgdr1rUarfYo3jsWrQGhlqQWxncFZKS7JDJ g+1g== 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=Ysx0gn/jPXDJ0uS1Udyx7BvalhG8NBCJJjfnHYyjF4U=; b=ZIuFwER3lplQz4Qgsn6hyAJCvxvWJ6LzaIiG/9TAllT/b1t7j7FLFlGGbqyOzB7AO1 1T+ecI+/JhxUBBCRH0wDAO4//1Ia4yRLcfMjuzFNbXiKzhy5yTHuqeBAwo9JH5TuAU9z YOygd7biUaBkXXOlLLqDWK2bOvYV80y71DuymiLox7Tx3TIVcmdfRcUCeSEuSWD+SNZS 8VWzW+h1naPWHayranMPr+jHxUoDAxY7B1U8Bh3uo1PpVBjwNYCP12fj7LdHEBhLP/u5 NpdP/aQBV/eTgveGdvS5Bn+9libe49DT0aBhL5Yme3oMkqbD/4vvS1tpwp4yAGXjXaxZ 1zqQ== X-Gm-Message-State: AOAM532Q9jMG9fBbKGLGVtJ1WgVlnmb0lkpaswVAA8hPwTtTaI6gmVJL 21YLSxwZVzct7bCHb67hrXzU/Q== X-Google-Smtp-Source: ABdhPJza8LP5N8nnJb0hSprmIvm6RKekodrRnoHj10h6WPPu9H+rV7EyFQrLV0Dp8XB4L8j18EfL5Q== X-Received: by 2002:a05:6a00:1a42:b0:51c:27ee:9393 with SMTP id h2-20020a056a001a4200b0051c27ee9393mr29901659pfv.78.1654961764127; Sat, 11 Jun 2022 08:36:04 -0700 (PDT) Received: from hermes.local (204-195-112-199.wavecable.com. [204.195.112.199]) by smtp.gmail.com with ESMTPSA id s4-20020a056a001c4400b0050dc7628191sm1710009pfw.107.2022.06.11.08.36.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Jun 2022 08:36:03 -0700 (PDT) Date: Sat, 11 Jun 2022 08:36:01 -0700 From: Stephen Hemminger To: David Marchand Cc: dev@dpdk.org, thomas@monjalon.net, ferruh.yigit@xilinx.com, stable@dpdk.org, Qiming Yang , Qi Zhang Subject: Re: [PATCH 06/12] net/ice: fix build with GCC 12 Message-ID: <20220611083601.67db5dd6@hermes.local> In-Reply-To: <20220518101657.1230416-7-david.marchand@redhat.com> References: <20220518101657.1230416-1-david.marchand@redhat.com> <20220518101657.1230416-7-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:51 +0200 David Marchand wrote: > GCC 12 raises the following warning: >=20 > In file included from ../lib/mempool/rte_mempool.h:46, > from ../lib/mbuf/rte_mbuf.h:38, > from ../lib/net/rte_ether.h:22, > from ../lib/ethdev/rte_ethdev.h:172, > from ../lib/ethdev/ethdev_driver.h:22, > from ../lib/ethdev/ethdev_pci.h:17, > from ../drivers/net/ice/ice_ethdev.c:6: > ../drivers/net/ice/ice_ethdev.c: In function =E2=80=98ice_dev_configure= =E2=80=99: > ../lib/eal/x86/include/rte_memcpy.h:370:9: warning: array subscript 64 is > outside array bounds of =E2=80=98struct ice_aqc_get_set_rss_keys[= 1]=E2=80=99 > [-Warray-bounds] > 370 | rte_mov32((uint8_t *)dst + 2 * 32, (const uint8_t *)src + 2 * 32); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > ../drivers/net/ice/ice_ethdev.c:3202:41: note: while referencing =E2=80= =98key=E2=80=99 > 3202 | struct ice_aqc_get_set_rss_keys key; > | ^~~ >=20 > Restrict copy to minimum size. >=20 > Cc: stable@dpdk.org >=20 > Signed-off-by: David Marchand > --- Acked-by: Stephen Hemminger