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 33667A034C; 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 C78D340A84; Wed, 22 Jun 2022 17:42:40 +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 7B1634069F 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-f198.google.com (mail-lj1-f198.google.com [209.85.208.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-282-5-eatK4iOwuLvZECPF9HVQ-1; Wed, 22 Jun 2022 11:42:37 -0400 X-MC-Unique: 5-eatK4iOwuLvZECPF9HVQ-1 Received: by mail-lj1-f198.google.com with SMTP id a16-20020a05651c211000b002557bb9091bso2539903ljq.11 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=ute9lXHpreIxJIm+Mr5M08qPYWco+EsoBNY8l2zWfGksCin4XLmvfjIqMgKNCkHoVA xhOrYvf/VWMowmtgoHEF7hmisYOhjXtBlUlbdC3eQsWu7yGGB6E4U0R2Py6kpLl6w6oa vS8zj10TJMbAkJDrVXMTfFPh+SGQoZScTclVAYW8nbnQSyqQv+BAtPqBVs+IIbKPzHbw icxEQTYyqFNyXZQqJQb6lyUDjBEs2A2Fp9qgGieMhd2fOz+B9wGZvfqI+YAjox6jF1fn YOLtfry6B1mb8t0l2PFxye0L0o5YOr4m+o5rgvrGRSI4qK7OUVISDv5XIaX8dXtIRkOR S7SQ== X-Gm-Message-State: AJIora8yn1y3bWKqhmxSGupXT5oOz2R/CYc2G74559j+DnAFVG+CcCyn HggDQ5xFdommSVTYtTkw0ztb+dkhtgGLro117EvPBbn9AtlnE895VNU1LTyCr7Rq13qPI0EozLb SvUT3WUynqSipmBBYqes= X-Received: by 2002:ac2:5201:0:b0:479:3923:9559 with SMTP id a1-20020ac25201000000b0047939239559mr2553302lfl.553.1655912556408; 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: 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, 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