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 AEA1EA0C3F for ; Sat, 12 Jun 2021 01:17:58 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A8E394003F; Sat, 12 Jun 2021 01:17:58 +0200 (CEST) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2058.outbound.protection.outlook.com [40.107.92.58]) by mails.dpdk.org (Postfix) with ESMTP id D198E4003F for ; Sat, 12 Jun 2021 01:17:57 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aRT06YRExcQuZnXQd3uu30T+zZVvGsbt3EBCo+t+7RXM8kETFm0gLCA7Qger0TTVV+18fq2kPHVh8tt0rG4VkoTVq8rJJiVY5WledhWdxRF1u15Q6pKgGgwNVlGzPXQjLCBwPfrbmCIm0apiLNGl5/CaI3p0MfUVpI3sX0a2HgUsDBd0Y3IArq/fNdlQS2tUtXZmC+hGr4Yk7+2o1z0En/wzU0o03sV4Zh3z9oVr4m2PsLj+iukms+A6lwPQFW7Ld0LF/licZleb9mK2Wteb54LVuuQsntYwlmRsaBHsbtmxTkrsKiZklxUAjB1an8OqKmDM8ouROE5GHvY0tRCSrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=hza9UsYTj4fnMp5UvQaDHCGp4VpaZtgQEb3cyL5GM+U=; b=Im7uZ/0weW4isVDydEoKLenqLSjKgIzNfeKbArkNM6QHg/y9W2KlxVDZg8U/+5+nU8T+HZOHC2PxytbdAigte55ezUXkJX/ikwNvbnIxGibD2BX5EhXQPZ0n0H3EUMkkuBPgaOd8bdtpqj9ZRyJhVxIAJvd3le9B5kk2ToIzOM71epn8kzUMw/4OLLwLOVMyMSpUaq5RsZazNkssD2UalDC0s+uyIy1eMnlb1q1AiCmUOyB1KcJGbYX6bLVSX7iEdpQO8tAcRAGpR6teCATHY1VRJmu3ws5zxw/lCDnwtmpL6EmAVc5OG5H0ST0ccvnmhAw90PGPuDjoZf1SPH09VA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=redhat.com smtp.mailfrom=nvidia.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=hza9UsYTj4fnMp5UvQaDHCGp4VpaZtgQEb3cyL5GM+U=; b=aSUCjvh5CUUYnDmSUD/7R08sNhs3DM+uLInZvu09ZGocIFwUb9JBkZIPLo8IBDa9NvFGvqmaPfhrSasOiouNdI0kPG1AUrrRe5zYsbpGDpxiLIOkU+JvEWDXm/I3zeaKemIlZyYgz1IAi+Kzhzi5w+uWaueM7fJGubDVXjhb9R5p7dIf9BLG8bGT8NVYXVxNdgB/GpB36lAaTcGJqa1kkiFQMr+nS1PfBLiwGElq+eYwOdwrmWbT1B3NkcoEYICMmK1bJyl3jWkWHG1jPRIqp5tI2xr9BqzXilFLCAanXmrIB5BcJOGesd1nSzGtaD6YkEDzxIOaRrYdzUe2F3rJog== Received: from BN6PR1101CA0010.namprd11.prod.outlook.com (2603:10b6:405:4a::20) by DM5PR12MB2552.namprd12.prod.outlook.com (2603:10b6:4:b5::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.23; Fri, 11 Jun 2021 23:17:56 +0000 Received: from BN8NAM11FT009.eop-nam11.prod.protection.outlook.com (2603:10b6:405:4a:cafe::f) by BN6PR1101CA0010.outlook.office365.com (2603:10b6:405:4a::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.22 via Frontend Transport; Fri, 11 Jun 2021 23:17:56 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by BN8NAM11FT009.mail.protection.outlook.com (10.13.176.65) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4219.21 via Frontend Transport; Fri, 11 Jun 2021 23:17:56 +0000 Received: from nvidia.com (172.20.187.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 11 Jun 2021 23:17:54 +0000 From: Xueming Li To: Ferruh Yigit CC: Luca Boccassi , Kevin Traynor , dpdk stable Date: Sat, 12 Jun 2021 07:03:52 +0800 Message-ID: <20210611230433.8208-138-xuemingl@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210611230433.8208-1-xuemingl@nvidia.com> References: <20210510160258.30982-229-xuemingl@nvidia.com> <20210611230433.8208-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [172.20.187.6] X-ClientProxiedBy: HQMAIL105.nvidia.com (172.20.187.12) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9f23f1fc-e32b-41dd-3a57-08d92d2f2574 X-MS-TrafficTypeDiagnostic: DM5PR12MB2552: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:10000; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ofi5AZT4j/nmNs3PgzXV3zkJVwpPk/IT9NzHmXrAf14cT+iZ7Zufctn4IU2RFJwOwUZLSbiXyShWRuqr1eYVHvvDsblKR3brepuw90u/dBOW0iDB32hB/sl7SLK7XsKRLFur5N0Qjfnqe8aw59Yq5PRYCRF5dpZcfIbevSsDLSqf7bOOndlFkeI4RUYpnJYD5ZpBEuczN1+aALPNK5DhxMn4+s8cmC1iNgKwgQj33k3bSP8V/KLcAySKr5M0nU2bPhYUtNowrNLotFoc6e5C/Zb7q6zw1cRQ+8MoHypUejBjRno24z6cItFgeZaJMG5NF5wxUjyan1bDhaWRPj6HsxrKMHw8x2EtodvAcE5SES5Tmrx3rWIR2KenGo4iGXWNGEKyJ03jKxyN8QhcpkrErR5+rCuItKluHhdOGkIHuYa0KT2OD948f/DgJpmGaZsyOIfcSv1d5ZwZ9nXTRWhHwvh9cS/K19FXaDOA/oldKtltxtcf0J+DrIM2V76EnwqYbjrV7Nb7iwxukTzY5ZC3OziH/ZVcUJxJnrAkSUakjdhsmglt4o+1gQZxQ2rwBUybdSaIG8xOYk8DAMfeEkgxF64yMhK5S1Kt0rm7XFrkk+Zv7GhNksBAT5r+1gfUPm6i+R2zJt/tIG5IwKxefEuKCjoNj2Z1yzGVniy3kXsKiD1q8hkDIV5FbgkcR5ceLoQIVVRno7mX79fErdd6tcllCqzoXfAG4ed6docx5KmeGzz0Kj4TkGeX8wF2ryiCeBF36PMtngjxpGt3z5Iw2DN1Sgf02Gv2R34eX0BLcMaVh89qDGv/zRXuXuolFZhuI0sV X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(136003)(376002)(39860400002)(346002)(396003)(36840700001)(46966006)(54906003)(36756003)(2616005)(2906002)(966005)(356005)(70586007)(86362001)(186003)(36906005)(7636003)(316002)(5660300002)(70206006)(16526019)(82740400003)(55016002)(6916009)(36860700001)(7696005)(1076003)(53546011)(478600001)(82310400003)(426003)(336012)(8936002)(26005)(47076005)(4326008)(83380400001)(6286002)(8676002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jun 2021 23:17:56.2953 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9f23f1fc-e32b-41dd-3a57-08d92d2f2574 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT009.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB2552 Subject: [dpdk-stable] patch 'net/bnx2x: fix build with GCC 11' has been queued to stable release 20.11.2 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 Sender: "stable" Hi, FYI, your patch has been queued to stable release 20.11.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 06/14/21. 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/steevenlee/dpdk This queued commit can be viewed at: https://github.com/steevenlee/dpdk/commit/84c5ec250561c8493c270d928f02bb4f2d226ecd Thanks. Xueming Li --- >From 84c5ec250561c8493c270d928f02bb4f2d226ecd Mon Sep 17 00:00:00 2001 From: Ferruh Yigit Date: Tue, 11 May 2021 14:14:33 +0100 Subject: [PATCH] net/bnx2x: fix build with GCC 11 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Luca Boccassi [ upstream commit ab70be7e2d971dd0238da10322ac19209917b8ca ] Reproduced with '--buildtype=debugoptimized' config, compiler version: gcc (GCC) 12.0.0 20210509 (experimental) Build error: In file included from ../drivers/net/bnx2x/bnx2x.c:16: ../drivers/net/bnx2x/bnx2x.c: In function ‘bnx2x_hc_ack_sb’: ../drivers/net/bnx2x/bnx2x.h:1528:35: warning: ‘igu_ack’ is used uninitialized [-Wuninitialized] #define REG_WR32(sc, offset, val) bnx2x_reg_write32(sc, (offset), val) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/bnx2x/bnx2x.h:1531:33: note: in expansion of macro ‘REG_WR32’ 1531 | #define REG_WR(sc, offset, val) REG_WR32(sc, offset, val) | ^~~~~~~~ ../drivers/net/bnx2x/bnx2x.h:1916:9: note: in expansion of macro ‘REG_WR’ 1916 | REG_WR(sc, hc_addr, *val); | ^~~~~~ ../drivers/net/bnx2x/bnx2x.h:1905:33: note: ‘igu_ack’ declared here 1905 | struct igu_ack_register igu_ack; | ^~~~~~~ REG_WR32 requires 'uint32_t', use union instead of cast to 'uint32_t'. Bugzilla ID: 692 Fixes: 38dff79ba736 ("net/bnx2x: update HSI") Signed-off-by: Ferruh Yigit Acked-by: Kevin Traynor --- drivers/net/bnx2x/bnx2x.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/net/bnx2x/bnx2x.h b/drivers/net/bnx2x/bnx2x.h index 69cc1430a4..8b3f807eb6 100644 --- a/drivers/net/bnx2x/bnx2x.h +++ b/drivers/net/bnx2x/bnx2x.h @@ -1902,18 +1902,19 @@ bnx2x_hc_ack_sb(struct bnx2x_softc *sc, uint8_t sb_id, uint8_t storm, { uint32_t hc_addr = (HC_REG_COMMAND_REG + SC_PORT(sc) * 32 + COMMAND_REG_INT_ACK); - struct igu_ack_register igu_ack; - uint32_t *val = NULL; + union { + struct igu_ack_register igu_ack; + uint32_t val; + } val; - igu_ack.status_block_index = index; - igu_ack.sb_id_and_flags = + val.igu_ack.status_block_index = index; + val.igu_ack.sb_id_and_flags = ((sb_id << IGU_ACK_REGISTER_STATUS_BLOCK_ID_SHIFT) | (storm << IGU_ACK_REGISTER_STORM_ID_SHIFT) | (update << IGU_ACK_REGISTER_UPDATE_INDEX_SHIFT) | (op << IGU_ACK_REGISTER_INTERRUPT_MODE_SHIFT)); - val = (uint32_t *)&igu_ack; - REG_WR(sc, hc_addr, *val); + REG_WR(sc, hc_addr, val.val); /* Make sure that ACK is written */ mb(); -- 2.25.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2021-06-12 06:54:00.110626000 +0800 +++ 0138-net-bnx2x-fix-build-with-GCC-11.patch 2021-06-12 06:53:56.590000000 +0800 @@ -1 +1 @@ -From ab70be7e2d971dd0238da10322ac19209917b8ca Mon Sep 17 00:00:00 2001 +From 84c5ec250561c8493c270d928f02bb4f2d226ecd Mon Sep 17 00:00:00 2001 @@ -7,0 +8,3 @@ +Cc: Luca Boccassi + +[ upstream commit ab70be7e2d971dd0238da10322ac19209917b8ca ] @@ -34 +36,0 @@ -Cc: stable@dpdk.org @@ -43 +45 @@ -index e13ab15574..80d19cbfd6 100644 +index 69cc1430a4..8b3f807eb6 100644