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 D8FDDA00C3 for ; Thu, 16 Jun 2022 19:02:22 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D065640FAE; Thu, 16 Jun 2022 19:02:22 +0200 (CEST) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2046.outbound.protection.outlook.com [40.107.220.46]) by mails.dpdk.org (Postfix) with ESMTP id 1FBF040141; Thu, 16 Jun 2022 19:02:21 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=N0JjMSSsVU3Odj4DZh3LZ+OaH600vDAYGzf1p5Ocn0Nyt0bsBtX2hoG9ywMYrEomvsPrkV6vkyjVzglDs3RJyOJ+x84z6vgA/cPXbbO7Kb2sfS7ijQrgLZCQpGbditURQBKAOSSiuSy9PCZLvrIuQ61hs5rp5Ca4RBa54s4fnbMadYtQs5tHnIg6FdiSC8h5s9m1ZUDSNBg6XoMOZxwByFjCTb7/pZmngW5QgHh7xDUxowrn+Xa6oB1WjzTpj/Jnj75nSScCh0JJ8SaN3HCrfoLuTXj2TOoxEKC2Y4RLw4EOc8Qs/CMmKR6c1vGdIqRWSPhvDTaxleBkgmxY4mquaw== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=PmfDr9zYuhJBGw3Zt/je6579Ye1d6pEtG7VDOkvw4CI=; b=gfWN4PWfP50jKblndhns4YZR1W1/Tnf0699WTCTLYTCKdbfVJZGAh1Phdp8tW137xOyjOmzB/MlXfF/oelZ3lYMevXvg9R1XC/GwU5HET/1evb+n7uw1Tb/sXe2yXbOF7V5C9IAh0/H9E6l7dOzZ+fTYj5gaotKhY30466FUGal3z9exuWuLZe/ZaqjpZZsS9KulH3g3br+zHeGO3DWaddNIpU7x1RR5sSXlNRGeOzmZGKbG4HOMcLxN3O7GzLzSWOpDIf3oh08KheTd9cj1TrGT6zL0SLdWzJX5IPl3TMydl1sBUclXnHz+u6fcqgUC6ZqzxdBcinXzyj6zS9iQgg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.80.198) smtp.rcpttodomain=marvell.com smtp.mailfrom=xilinx.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PmfDr9zYuhJBGw3Zt/je6579Ye1d6pEtG7VDOkvw4CI=; b=SESg6HUd+7Wm1EqMI5ZrXRIMnwhLd7VJiA7wR9CXm3KFzNKK6whS/sRPbBskHAFs2l1ZmXKgg9qbo6HnF6KGGjmmr8ZRXsLa+jB9hVHNW3pCdheStliGA3vhZY1AmGGyRwhwwLoEPQ/QpzizR9A39W21vBNqa+u4loMBeA88+hQ= Received: from DM6PR02CA0094.namprd02.prod.outlook.com (2603:10b6:5:1f4::35) by DM5PR02MB2538.namprd02.prod.outlook.com (2603:10b6:3:40::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5332.16; Thu, 16 Jun 2022 17:02:19 +0000 Received: from DM3NAM02FT041.eop-nam02.prod.protection.outlook.com (2603:10b6:5:1f4:cafe::bc) by DM6PR02CA0094.outlook.office365.com (2603:10b6:5:1f4::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5332.17 via Frontend Transport; Thu, 16 Jun 2022 17:02:19 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.80.198) smtp.mailfrom=xilinx.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.80.198 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.80.198; helo=xir-pvapexch02.xlnx.xilinx.com; pr=C Received: from xir-pvapexch02.xlnx.xilinx.com (149.199.80.198) by DM3NAM02FT041.mail.protection.outlook.com (10.13.5.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5353.14 via Frontend Transport; Thu, 16 Jun 2022 17:02:18 +0000 Received: from xir-pvapexch01.xlnx.xilinx.com (172.21.17.15) by xir-pvapexch02.xlnx.xilinx.com (172.21.17.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Thu, 16 Jun 2022 18:02:16 +0100 Received: from smtp.xilinx.com (172.21.105.198) by xir-pvapexch01.xlnx.xilinx.com (172.21.17.15) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Thu, 16 Jun 2022 18:02:16 +0100 Envelope-to: rmody@marvell.com, dsinghrawat@marvell.com, irusskikh@marvell.com, dev@dpdk.org, jerinj@marvell.com, stable@dpdk.org Received: from [172.21.78.13] (port=54066 helo=xirdcglab01.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1o1ssq-0006Hx-Rv; Thu, 16 Jun 2022 18:02:16 +0100 From: Ferruh Yigit To: Rasesh Mody , Devendra Singh Rawat , Igor Russkikh CC: , Jerin Jacob Kollanukkaran , Subject: [PATCH] net/qede: fix build with GCC 13 Date: Thu, 16 Jun 2022 18:02:09 +0100 Message-ID: <20220616170211.2550199-1-ferruh.yigit@xilinx.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 89bcd9a9-5ad4-44d9-2ceb-08da4fb9f882 X-MS-TrafficTypeDiagnostic: DM5PR02MB2538:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: nhsNo9ZTdgM7kc3PbY4JMp3c1uQGIeElohSXR/GCUmxb5rgp1+fqTjAOEbBzFSygSZaM0U0m+BGmabo86UqwjHi2pZbwtpjXe9qa04Xp8uwnnZxeV+omtQLL/wi2xzWPNbKgilb9AB1EqrcAtUTuYwSaFiIBgQWUMQbLykjDgiYovci4aAXhFFCAKWynsLXIuEX4DdMnPL9tUZdnkOIeryFNcveQ3BUZC+kaspjhYo8gRSCCKUbXgYtSpsbqvgXbrNSLvcql0N/wFjzaRP7+uK2WQjdcsm/UKFAY15RQYpAUDMcy1Nv42p0l1HnUeDgnlAJWf9JjMc7mkHHYUowTB6sWqMGoAsv9PVBU/OYjHla/MDjw21TtlSuhw/aITFQvpEv6Clu0UvInxPh4tNMzk+siNbY+taFqDIREWp7DAMMlXow/1AwXkhPVsFE5Volq29nFqt7fAJ07WzSmQGvF36fBdjMMmG8evRAwQBFiORvC7eCvYbfCpraa5rdEfLGopER4aYEVgOzoutyCgPhag6B6782zD4HpUdQfGG8WNwKuLMSeSVFGH14ipIuiRkGDS7C51uXiKWk2NHc5UA8YQ/mJZKl4NPL/7h4f8/P/RC/F5zNqZVCpeN0StSHqKzJgm+a8I23kCkmdV0S4D/i0PpO5zP6R51Fj3wra2//gaCELYkfgjx7iISVh2IaC2CdCeue6K8sbPSslxC4OlnfI3A== X-Forefront-Antispam-Report: CIP:149.199.80.198; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:xir-pvapexch02.xlnx.xilinx.com; PTR:unknown-80-198.xilinx.com; CAT:NONE; SFS:(13230016)(4636009)(40470700004)(46966006)(36840700001)(356005)(70206006)(5660300002)(508600001)(70586007)(8676002)(4326008)(36860700001)(110136005)(54906003)(426003)(336012)(316002)(47076005)(186003)(1076003)(83380400001)(26005)(7696005)(7636003)(6666004)(8936002)(40460700003)(44832011)(9786002)(2906002)(82310400005)(36756003)(2616005)(102446001); DIR:OUT; SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jun 2022 17:02:18.0983 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 89bcd9a9-5ad4-44d9-2ceb-08da4fb9f882 X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.80.198]; Helo=[xir-pvapexch02.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: DM3NAM02FT041.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR02MB2538 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 Reproduced with "gcc (GCC) 13.0.0 20220616 (experimental)" Build error: In file included from ../drivers/net/qede/qede_debug.c:9: ../drivers/net/qede/qede_debug.c: In function ‘qed_grc_dump_addr_range’: ../drivers/net/qede/base/ecore.h:95:17: warning: overflow in conversion from ‘int’ to ‘u8’ {aka ‘unsigned char’} changes value from ‘(int)vf_id << 8 | 128’ to ‘128’ [-Woverflow] 95 | ((_value & _name##_MASK) << _name##_SHIFT) | ^ ../drivers/net/qede/qede_debug.c:1907:31: note: in expansion of macro ‘FIELD_VALUE’ 1907 | fid = FIELD_VALUE(PXP_PRETEND_CONCRETE_FID_VFVALID, 1) | ^~~~~~~~~~~ To prevent overflow converting 'fib' to uint16_t, while updating it also updated 'vf_id' to 16 bit too. Fixes: ec55c118792b ("net/qede: add infrastructure for debug data collection") Cc: stable@dpdk.org Signed-off-by: Ferruh Yigit --- Cc: rmody@marvell.com --- drivers/net/qede/qede_debug.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/qede/qede_debug.c b/drivers/net/qede/qede_debug.c index 9383a6d67714..18f2d988fb88 100644 --- a/drivers/net/qede/qede_debug.c +++ b/drivers/net/qede/qede_debug.c @@ -1809,7 +1809,8 @@ static u32 qed_grc_dump_addr_range(struct ecore_hwfn *p_hwfn, u8 split_id) { struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; - u8 port_id = 0, pf_id = 0, vf_id = 0, fid = 0; + u8 port_id = 0, pf_id = 0; + u16 vf_id = 0, fid = 0; bool read_using_dmae = false; u32 thresh; -- 2.27.0