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 1F883A0553; Sat, 11 Jun 2022 17:36:06 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0E1F442802; Sat, 11 Jun 2022 17:36:06 +0200 (CEST) Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) by mails.dpdk.org (Postfix) with ESMTP id E10AC406B4 for ; Sat, 11 Jun 2022 17:36:04 +0200 (CEST) Received: by mail-pf1-f175.google.com with SMTP id i64so1980777pfc.8 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=u4i7UK+v7dXpTahhK6g+38GDFBpnQnSaamvL+DB6UF/dltC5YshG0Cxs99SYoNaST3 pr794WRp2Ywv4Y7yZy32jwWpfYaHm6irFnI8ehTlqvE07FvSBM2GtL/65bTmlNbEB7bg t4paMna1g9/j4shQjRUT3CJXmlfxmHIJQbZyi4EwiYCWWdej9eCyKk8SOdbIO+ofxYaV 36yYar8ZnUXvG8OnU+BdQqh6w1kPMI7WODmHvVpxmXJOoJBck69MqC6ByiMpIn/3nuOn YYSy81C7hur+08yV6Bow9pNZjgOU02YO3xQQ0dciIAUSJXq43DWeRp6S5eUFoaEVDe+O VO+Q== X-Gm-Message-State: AOAM532o4G9xmW3SxOCXw/I3U7mmc0c8zLFOB5liAXpeWs3V+sCOSWYv s34HkGSdxd9+jAeLMSTp03avuA== 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: 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: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