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 E9A8EA0093; Fri, 20 May 2022 22:30:03 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9A58940222; Fri, 20 May 2022 22:30:03 +0200 (CEST) Received: from mail-pg1-f171.google.com (mail-pg1-f171.google.com [209.85.215.171]) by mails.dpdk.org (Postfix) with ESMTP id 1BCEF40156 for ; Fri, 20 May 2022 22:30:02 +0200 (CEST) Received: by mail-pg1-f171.google.com with SMTP id c22so8674922pgu.2 for ; Fri, 20 May 2022 13:30:02 -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=0ROusat76N10mtivxbABl0u94PqadGvr7JYAa/dtRgA=; b=ngqf3Gf0/2yvO/xJyBNaGQsYF0in9UI7B/U5qleybXR5lRJPuCAjJtMKISJkYsx+4R 8f35A3saKS9y54uoNesqpEZx1ii4FJMOpcDrqYKpsDkYqFf7R+WYWDwfFlOzVxR38IXQ q3m+Bj1XlHeb9A9gE9qoWnLa8661psEo7KgQMN/M9qJZ0Af0GPMJ5HeRPc3nj+7IhoEH /IfcmDp6ylqQtnEZxT7zfIS0+4mcKY2IYa4xa/dPD03z+2fiTmi/Kfeq9vj8RmV4o6/U oJ1ujob1Wj2guEf2HNRV/qQWDRGlNLYZsYcKiYPIFhdSejoIk0IWIVud3Xu3FACyl71Y nKvQ== 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=0ROusat76N10mtivxbABl0u94PqadGvr7JYAa/dtRgA=; b=4c3aKhuQKo0SaWgtJcvS4A6xEQ6JXmP52NWqhPui6PMep0fO6K3LbSJ1N3Uafi1LwJ HZGnmVO4pZegZzW2U7dtB9fc3n1JKtEzf6ZKMQA5HTfJv9VQoQpSVIsdM8g8H8v01tVq p6yDppRJPMiIxOwRzeS7fLOuTDLPRxcolfwUXZMkEu/aWhuUlPy0aKdruZ9NP85fmG6A 7MzRlVsGgHRNwoYztIylZnDsfbK5v2Br3YT6eIeBNcU8T+WZBaDazJTtK9n7t/jz/m4W 5+agYspJrNPtLn/ulLcBe/82dOfyiJAxcfhJiaTW8/e+7FKWBEmj3NRvT/st2UbwWZ0K 9SwQ== X-Gm-Message-State: AOAM531EaGBWyJXefbQgeoEaYkwCDd4c0r9g8CuNTS6JbdMhC8masrB1 WEurbRU3y/dVGvR8Gkm1cgK24g== X-Google-Smtp-Source: ABdhPJzVwjjS1R4jyvXk7oWM05kxYt+wjfxydxfqYNxtdhxYqZY4M5Y5X0+G8gjZQ9Ge6fhb22UXSw== X-Received: by 2002:aa7:8e44:0:b0:50c:fc0e:8d25 with SMTP id d4-20020aa78e44000000b0050cfc0e8d25mr11939318pfr.81.1653078601323; Fri, 20 May 2022 13:30:01 -0700 (PDT) Received: from hermes.local (204-195-112-199.wavecable.com. [204.195.112.199]) by smtp.gmail.com with ESMTPSA id b12-20020a170903228c00b0016184e7b013sm166929plh.36.2022.05.20.13.30.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 May 2022 13:30:00 -0700 (PDT) Date: Fri, 20 May 2022 13:29:58 -0700 From: Stephen Hemminger To: David Marchand Cc: dev@dpdk.org, thomas@monjalon.net, ferruh.yigit@xilinx.com, stable@dpdk.org, Rasesh Mody , Devendra Singh Rawat Subject: Re: [PATCH 08/12] net/qede/base: fix build with GCC 12 Message-ID: <20220520132958.1acd85f8@hermes.local> In-Reply-To: <20220518101657.1230416-9-david.marchand@redhat.com> References: <20220518101657.1230416-1-david.marchand@redhat.com> <20220518101657.1230416-9-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:53 +0200 David Marchand wrote: > GCC raises the following warning: >=20 > In function =E2=80=98_mm256_storeu_si256=E2=80=99, > inlined from =E2=80=98rte_mov32=E2=80=99 at > ../lib/eal/x86/include/rte_memcpy.h:320:2, > inlined from =E2=80=98rte_mov128=E2=80=99 at > ../lib/eal/x86/include/rte_memcpy.h:342:2, > inlined from =E2=80=98rte_memcpy_generic=E2=80=99 at > ../lib/eal/x86/include/rte_memcpy.h:438:4, > inlined from =E2=80=98rte_memcpy=E2=80=99 at > ../lib/eal/x86/include/rte_memcpy.h:882:10, > inlined from =E2=80=98__ecore_mcp_cmd_and_union=E2=80=99 at > ../drivers/net/qede/base/ecore_mcp.c:541:3, > inlined from =E2=80=98_ecore_mcp_cmd_and_union=E2=80=99 at > ../drivers/net/qede/base/ecore_mcp.c:638:2, > inlined from =E2=80=98ecore_mcp_cmd_and_union=E2=80=99 at > ../drivers/net/qede/base/ecore_mcp.c:742:9: > /usr/lib/gcc/x86_64-redhat-linux/12/include/avxintrin.h:935:8: error: > array subscript 1 is outside array bounds of > =E2=80=98union drv_union_data[1]=E2=80=99 [-Werror=3Darray-bounds] > 935 | *__P =3D __A; > | ~~~~~^~~~~ > ../drivers/net/qede/base/ecore_mcp.c: In function > =E2=80=98ecore_mcp_cmd_and_union=E2=80=99: > ../drivers/net/qede/base/ecore_mcp.c:533:30: note: at offset 32 into > object =E2=80=98union_data=E2=80=99 of size 32 > 533 | union drv_union_data union_data; > | ^~~~~~~~~~ >=20 > Since this code is in the base driver, waive the check until the base > driver is fixed by the relevant people. >=20 > Cc: stable@dpdk.org >=20 > Signed-off-by: David Marchand Or mark driver broken with gcc-12 and get the maintainer to fix?