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 E2108A00C2 for ; Wed, 5 Oct 2022 21:28:50 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C058840DFB; Wed, 5 Oct 2022 21:28:50 +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 E616E40DDC for ; Wed, 5 Oct 2022 21:28:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1664998128; 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=MrEPapYG7BlwhRZqqQLSR1hwxTc+4xQAwsBwljDA7XI=; b=gQFazfCXS6Wn37aeeXD9mJl/JA6GSIRJugoRsTQA6qPATI5ax/LA+zWlivoALMwiCz2nou 7cTqIdpwhsI6X+JqI3qjIse8W2LeANZG97cSnJKxZbOuORvtnjgmwh93VloqS7PooqtXIZ kutO5Y3+Zz+eeb8gP8JZe0UexIy44Sk= Received: from mail-pj1-f70.google.com (mail-pj1-f70.google.com [209.85.216.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-250-b7sGI-cDOJSqYbhUdeD9Vw-1; Wed, 05 Oct 2022 15:28:47 -0400 X-MC-Unique: b7sGI-cDOJSqYbhUdeD9Vw-1 Received: by mail-pj1-f70.google.com with SMTP id m21-20020a17090a7f9500b0020a88338009so4943942pjl.4 for ; Wed, 05 Oct 2022 12:28:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date; bh=MrEPapYG7BlwhRZqqQLSR1hwxTc+4xQAwsBwljDA7XI=; b=kMf/r+2cSxEQnN0XPwdR+EC3W8HzFcDp7GmK7D0U0fjPuoZCeCIgQTvCuh47m0kqH2 Cz8EXX1AnoFzOq3zZCcTM97F5kFSMCPX43Yz5EJe7It9NQkEpsWMtY5fuRO2NEw2p0lm f08EgaI5nG7w4gwrhAUv4kepF/s48bMcX1N0jjsoRgRcuKyYI3Mmcl3q12pNW3d6ZvEN /xqa0+AXFiY3NwKp5I6m8TXFsNDCRqUkwbosds9uIlI0WUk78Hi7P8KvS59N4S6zrP3Q vJMcpb2XMd+5FIIzc0hZUUjfIijeVjOf3Bb5ofWflmob/o23ZB2jgz1HqBcwT/K8xHr8 ZMQA== X-Gm-Message-State: ACrzQf2OzrNgEVAZN4w9UEOii2+WjwMWfDhNQDk8wMAd5ZW+Gd4Z88D7 GZOBc/QSoCpro0eUPSBYA9QSFdWLWv1GqNmVmcRTBLqZ3C+SACJXTtkQtpzhEmdXwMr/Fx/t1Tm me0Ma6e5IJexII7wGMtvsCrA= X-Received: by 2002:a63:5b58:0:b0:452:2ba4:f86b with SMTP id l24-20020a635b58000000b004522ba4f86bmr1105915pgm.223.1664998126288; Wed, 05 Oct 2022 12:28:46 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6W4Uk6R+GY1IM4fhTGfN/SxtmSAPDOOlMhRWkq8QohC9tBoYW/W/fkmPB1Q2xlR01hCPK/bGjYjQ+Fc7lpy0c= X-Received: by 2002:a63:5b58:0:b0:452:2ba4:f86b with SMTP id l24-20020a635b58000000b004522ba4f86bmr1105894pgm.223.1664998125974; Wed, 05 Oct 2022 12:28:45 -0700 (PDT) MIME-Version: 1.0 References: <20221004111811.1502920-1-thomas@monjalon.net> In-Reply-To: <20221004111811.1502920-1-thomas@monjalon.net> From: David Marchand Date: Wed, 5 Oct 2022 21:28:32 +0200 Message-ID: Subject: Re: [PATCH] net/qede/base: fix 32-bit build with GCC 12 To: Thomas Monjalon Cc: dev@dpdk.org, stable@dpdk.org, Rasesh Mody , Devendra Singh Rawat 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 Tue, Oct 4, 2022 at 1:18 PM Thomas Monjalon wrote: > > A pointer is passed to a macro and it seems mistakenly referenced. > This issue is seen only when compiling with GCC 12 for 32-bit: > > drivers/net/qede/base/ecore_init_fw_funcs.c:1418:25: > error: array subscript 1 is outside array bounds of =E2=80=98u32[= 1]=E2=80=99 > {aka =E2=80=98unsigned int[1]=E2=80=99} [-Werror=3Darray-bounds] > 1418 | ecore_wr(dev, ptt, ((addr) + (4 * i)), \ > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > 1419 | ((u32 *)&(arr))[i]); \ > | ~~~~~~~~~~~~~~~~~~~ > drivers/net/qede/base/ecore_init_fw_funcs.c:1465:17: > note: in expansion of macro =E2=80=98ARR_REG_WR=E2=80=99 > 1465 | ARR_REG_WR(p_hwfn, p_ptt, addr, pData, len_in_dwords); > | ^~~~~~~~~~ > drivers/net/qede/base/ecore_init_fw_funcs.c:1439:35: > note: at offset 4 into object =E2=80=98pData=E2=80=99 of size 4 > 1439 | u32 *pData, > | ~~~~~^~~~~ > > Fixes: 3b307c55f2ac ("net/qede/base: update FW to 8.40.25.0") > Cc: stable@dpdk.org > > Signed-off-by: Thomas Monjalon Reproduced and tested build fix. Tested-by: David Marchand --=20 David Marchand