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 D3505A0544 for ; Fri, 11 Nov 2022 12:40:46 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CD83840150; Fri, 11 Nov 2022 12:40:46 +0100 (CET) Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) by mails.dpdk.org (Postfix) with ESMTP id 19EEA40141 for ; Fri, 11 Nov 2022 12:40:45 +0100 (CET) Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id E033E42241 for ; Fri, 11 Nov 2022 11:40:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1668166844; bh=iw4JGJ2GunA2rIYmMmX6+QZTKBToLUB/9b/d8AI0hOA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=ltGFe7Dv7tfm18XtdGnfAX4lDWUvaLPtMLIgDSPYLBj9GDwYJo+By62hAMDFR+XE3 M9HRE60hEEC1bm/wsfu6kd8H9P/boA7NJoGmKs71IDUw97ga7Y/Zc7dZK8HtEc0exz 37rXAZMS9TTQBoXzhfWE+hjHt2P6yHUCEbx8qhHIT3XZF/sv7s05ZSohtJWagLFfDB p2nl8+tbcuFI9wIxTijdSnKRw1QwkF3nTmiFYGAT5c0lEv8XDxz+IRYa+p7/XAODdY ytASifbV7qafVcTIprVrFQ9lS00yU36STaAe7syhGdO8TjVuVP3jhbkfsmTvPaq3Rx PG8KkyFMxeThQ== Received: by mail-ed1-f72.google.com with SMTP id z9-20020a05640235c900b0046358415c4fso3439956edc.9 for ; Fri, 11 Nov 2022 03:40:44 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=iw4JGJ2GunA2rIYmMmX6+QZTKBToLUB/9b/d8AI0hOA=; b=QsYLTCTD3yhNU1QDrbSji9Dw045dBF0cLTLtzpZeM8+sD+qf4XGwqo0lbRnJD4oPbB ZJndZqXyD3FXU5TcrFIXbjERILKJajUQV3A9WJk4esjbXYm/O9H67smyb1qK5anHxxRT l2rdE6s81xuDxM0VgYqrhnrkFeOrdO/gWU1+6DIJDCS65nQFDGsxiQOR8Gdwgy37H7WY ISsHgFMS9Gc3oqBr0j6nUlyc4aDKO020coXcSkd5mXMUNSfq5AS+P9dwYSECjtqbEmmz bS4tY7iJ+Mn544RzDr1nrT7Rzc9agPy/R/baKWjpZuUICOFEbparALEi0dajdkriSJbC mOFA== X-Gm-Message-State: ANoB5pksnG1EEYT0JpNlY3uUyuOUFGpy+XPQWv9VVLNocTIjTZS0kd7y npBm/LGdG7AHI6QA8IZQhnwYDdo/8qoNVpWBcgMI873+9u0dKv87vh3622DHNEAmIPdEaXS8HGa r4qjj3je2Z/V/nNfxYmjk4OiF X-Received: by 2002:aa7:d7c7:0:b0:462:3340:757b with SMTP id e7-20020aa7d7c7000000b004623340757bmr1063798eds.308.1668166844026; Fri, 11 Nov 2022 03:40:44 -0800 (PST) X-Google-Smtp-Source: AA0mqf6GEkmZFMixJlO93eRkKX184nd1XOtgFsJJ84ClUYQyXsnpsF8BtuT2trdH1AIa2OvHxALhHA== X-Received: by 2002:aa7:d7c7:0:b0:462:3340:757b with SMTP id e7-20020aa7d7c7000000b004623340757bmr1063786eds.308.1668166843775; Fri, 11 Nov 2022 03:40:43 -0800 (PST) Received: from localhost.localdomain ([2a02:6d40:39af:c100:1891:6c61:50fd:e567]) by smtp.gmail.com with ESMTPSA id r19-20020a170906a21300b007ad96726c42sm803553ejy.91.2022.11.11.03.40.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Nov 2022 03:40:43 -0800 (PST) From: christian.ehrhardt@canonical.com To: Amit Prakash Shukla Cc: Thomas Monjalon , dpdk stable Subject: patch 'net/qede/base: fix 32-bit build with GCC 12' has been queued to stable release 19.11.14 Date: Fri, 11 Nov 2022 12:38:47 +0100 Message-Id: <20221111113904.1549618-30-christian.ehrhardt@canonical.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221111113904.1549618-1-christian.ehrhardt@canonical.com> References: <20221111113904.1549618-1-christian.ehrhardt@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Hi, FYI, your patch has been queued to stable release 19.11.14 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 11/18/22. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/cpaelzer/dpdk-stable-queue This queued commit can be viewed at: https://github.com/cpaelzer/dpdk-stable-queue/commit/8f270efdacb9b579514fa2493689cc11f45d1f5f Thanks. Christian Ehrhardt --- >From 8f270efdacb9b579514fa2493689cc11f45d1f5f Mon Sep 17 00:00:00 2001 From: Amit Prakash Shukla Date: Wed, 24 Aug 2022 19:33:39 +0530 Subject: [PATCH] net/qede/base: fix 32-bit build with GCC 12 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [ upstream commit acc0ed087cd1ce6464f63489ab17eca52b0c94b2 ] 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 ‘u32[1]’ {aka ‘unsigned int[1]’} [-Werror=array-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 ‘ARR_REG_WR’ 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 ‘pData’ of size 4 1439 | u32 *pData, | ~~~~~^~~~~ Fixes: 3b307c55f2ac ("net/qede/base: update FW to 8.40.25.0") Signed-off-by: Amit Prakash Shukla Acked-by: Thomas Monjalon --- drivers/net/qede/base/ecore_init_fw_funcs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/qede/base/ecore_init_fw_funcs.c b/drivers/net/qede/base/ecore_init_fw_funcs.c index 6a52f32cc9..4e4d1dc374 100644 --- a/drivers/net/qede/base/ecore_init_fw_funcs.c +++ b/drivers/net/qede/base/ecore_init_fw_funcs.c @@ -1416,7 +1416,7 @@ void ecore_init_brb_ram(struct ecore_hwfn *p_hwfn, u32 i; \ for (i = 0; i < (arr_size); i++) \ ecore_wr(dev, ptt, ((addr) + (4 * i)), \ - ((u32 *)&(arr))[i]); \ + ((u32 *)(arr))[i]); \ } while (0) #ifndef DWORDS_TO_BYTES -- 2.38.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2022-11-11 12:35:05.845499319 +0100 +++ 0030-net-qede-base-fix-32-bit-build-with-GCC-12.patch 2022-11-11 12:35:04.777192084 +0100 @@ -1 +1 @@ -From acc0ed087cd1ce6464f63489ab17eca52b0c94b2 Mon Sep 17 00:00:00 2001 +From 8f270efdacb9b579514fa2493689cc11f45d1f5f Mon Sep 17 00:00:00 2001 @@ -8,0 +9,2 @@ +[ upstream commit acc0ed087cd1ce6464f63489ab17eca52b0c94b2 ] + @@ -29 +30,0 @@ -Cc: stable@dpdk.org