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 C67B3A00C3; Wed, 22 Jun 2022 01:17:21 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 604714069C; Wed, 22 Jun 2022 01:17:21 +0200 (CEST) Received: from mail-pj1-f51.google.com (mail-pj1-f51.google.com [209.85.216.51]) by mails.dpdk.org (Postfix) with ESMTP id 2AB9B40151 for ; Wed, 22 Jun 2022 01:17:20 +0200 (CEST) Received: by mail-pj1-f51.google.com with SMTP id w19-20020a17090a8a1300b001ec79064d8dso11749058pjn.2 for ; Tue, 21 Jun 2022 16:17:19 -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=AvvIl4pBhDd5+Ris7gNeIvAIKl3SrJuyeivpCx+j7hU=; b=Sl6fZ43/d293GRMrwlJ+HEdWoGSevrCRyduAEs5AjvfNfcDgw0ho7P4dWve1cWVTQb pTsepo+pArQoQ/S4KKl4rPiSakIp7qwQNVEtJNdT/n4McHQpTXTreyCNTpC2l58tlTjh uB8i4WY325Xa4Bb5V90rWUDASmSMQkVt00fnvAotwN2E/18OnibdpUYKxj9Kqh4BHnAm bAhKIa2QsgfaKn9BaGZKjJ4X9ZuvqySHZ3NaSKSPbSrOJ8b+2l7tZSIVX+WBcIs65hAI EUYFPzAqWz7rJPax/NgE3mcD1IJb/0h/WPVjVVePEGgbK9YZTTXfixcdKS6ScxagBTQs SsMw== 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=AvvIl4pBhDd5+Ris7gNeIvAIKl3SrJuyeivpCx+j7hU=; b=xl2RdzGTRz8nsu2bsJ5dI30oFq7ELA9BjzXCDy+GxxeGf5jzcozc+qg9A9bRrMdaO3 ISE4KX8lcnHziUOq3Kk4JoZN6LtNDoMawFSWvgKIguSJhsLWXkHKdY73VzCU3NoaCzFo SY9uim2oDPXb317pZjUzV71jpzTZyP17wlnk+zxwVSKWvdMuRZOi8fBze93ZIRbjWxPT UtLFO/l50fv5q1UHI1gXxB1eG1mUWebC4qok6yZdc61/XiLBj679f5hUMI/sbpUTl16S B9SiujKbqJzRaRYBJOQMLs2GaMEMYjnXiLGAgBqzkQzkxGTtXDOLjw1yti2iqjd7lGzO E1aw== X-Gm-Message-State: AJIora+evA9E2Spyw/uMnuxETKNBL8HI1bcX0NDytJCOdtSfqcJFnsW2 hy1VdxOCGN/EOfGgAsmrjd++uw== X-Google-Smtp-Source: AGRyM1s0xjapPqCLhhFoqau3aSnynMOQ0kw8cfmp/cIRIss8f0Efs1UF5roIfPudHRKMaXQ0k/CJHg== X-Received: by 2002:a17:90a:c705:b0:1ec:83e2:777c with SMTP id o5-20020a17090ac70500b001ec83e2777cmr365879pjt.89.1655853439241; Tue, 21 Jun 2022 16:17:19 -0700 (PDT) Received: from hermes.local (204-195-112-199.wavecable.com. [204.195.112.199]) by smtp.gmail.com with ESMTPSA id 9-20020aa79149000000b00518424f8922sm11894455pfi.77.2022.06.21.16.17.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jun 2022 16:17:18 -0700 (PDT) Date: Tue, 21 Jun 2022 16:17:16 -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: <20220621161716.7388367b@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. Even there are two maintainers, haven't heard a response from them. It could be a real bug.