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 BF3A1A04FD for ; Wed, 22 Jun 2022 17:42:41 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B7282427F3; Wed, 22 Jun 2022 17:42:41 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id 86AD240A84 for ; Wed, 22 Jun 2022 17:42:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1655912559; 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=EpOmYV4r6OfHKc8WmamBLlLDe6IdmdYvxB4lSOG4uZw=; b=ZpXLxDe4l/YJRSM/JUGDugqcjZS47f7mveD2dWTAD3HiL7K7sGMxFIacBNFN8D4Fs6zMFf h1Z/ndnhDxC9+kl5rTgAqRP6Hj3CIlk3A3Z3qf6V087hVP4LdWEWRG4nIG3dShzk++tyku nsCf6XWxnSQzx2bIggg3XHvj8sFuOgQ= Received: from mail-lj1-f200.google.com (mail-lj1-f200.google.com [209.85.208.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-177-1j_OP13JOPapEvwepyO5ZQ-1; Wed, 22 Jun 2022 11:42:37 -0400 X-MC-Unique: 1j_OP13JOPapEvwepyO5ZQ-1 Received: by mail-lj1-f200.google.com with SMTP id c12-20020a2ebf0c000000b00258e5e6e125so2539907ljr.17 for ; Wed, 22 Jun 2022 08:42:37 -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=EpOmYV4r6OfHKc8WmamBLlLDe6IdmdYvxB4lSOG4uZw=; b=t9ZAyR8/zehylXGStqYBOY8sr25cP++K++wTP9HUGOnNg4wwc1gh3NrmWfe8Cj7rcR d5q5Lxm7q/1HlxLhjrUZqNpiQPrT1yTVU3SXhlBmhiKMsD1qE6oYORFQCH3OXFjk8//s HYok5Q6NB6aWUfmyHFtFV/wrkHBzkLSksdOvrDtpUrrmyIzjQyR71ZfwUoDvlxNXtCei /wg0BnzM8z2aYBfQ6vWrbZqv1R4r0Jzki/VMz4b0swpw4iJTz2WF4Vem+DXCQpjMiRhL OLtydWpzzvDSJHKk2TJKChBzQlB6/zpzsoufnkuq2MyQNQsusqvugj/UrWS9LAFLCeM9 FgWQ== X-Gm-Message-State: AJIora8vaOccgzjsygQQdVz8C28Pc9St6htlmHuJbMT8zoIBrVVtNS2l q4mdv/MZfz6VUWJrPrY11gfy0o7wXlVLuMDooavSdtncH28+4giXShItJ0XTxxenEyGnDw297fJ G9Fv8go26mM07Ol7Bp67TL1o= X-Received: by 2002:ac2:5201:0:b0:479:3923:9559 with SMTP id a1-20020ac25201000000b0047939239559mr2553293lfl.553.1655912556325; Wed, 22 Jun 2022 08:42:36 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vnAwn1hQfJdE8vkhbaO1Z+4JDAQLRjzc/Rnh+c2FB68o+i+t+tofepNZZEu2SUj1vulqKAVF5vIeErEvqo/KU= X-Received: by 2002:ac2:5201:0:b0:479:3923:9559 with SMTP id a1-20020ac25201000000b0047939239559mr2553278lfl.553.1655912556117; Wed, 22 Jun 2022 08:42:36 -0700 (PDT) MIME-Version: 1.0 References: <20220518101657.1230416-1-david.marchand@redhat.com> <20220518101657.1230416-9-david.marchand@redhat.com> <20220621161716.7388367b@hermes.local> In-Reply-To: <20220621161716.7388367b@hermes.local> From: David Marchand Date: Wed, 22 Jun 2022 17:42:25 +0200 Message-ID: Subject: Re: [PATCH 08/12] net/qede/base: fix build with GCC 12 To: Stephen Hemminger , Rasesh Mody , Devendra Singh Rawat Cc: dev , Thomas Monjalon , Ferruh Yigit , dpdk stable , 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: 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, Jun 22, 2022 at 1:17 AM Stephen Hemminger wrote: > > GCC raises the following warning: > > > > 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-boun= ds] > > 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; > > | ^~~~~~~~~~ > > > > Since this code is in the base driver, waive the check until the base > > driver is fixed by the relevant people. > > Even there are two maintainers, haven't heard a response from them. > It could be a real bug. Maintainers were pinged privately but I see no progress. If I don't get a reply from them by tomorrow morning (GMT+2), I will merge your RFC patch as it seems the best fix atm. https://patchwork.dpdk.org/project/dpdk/patch/20220607171746.461772-3-steph= en@networkplumber.org/ --=20 David Marchand