From patchwork Fri Jan 20 05:36:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ashok Reddy Soma X-Patchwork-Id: 1729270 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=amd.com header.i=@amd.com header.a=rsa-sha256 header.s=selector1 header.b=K0XQN31f; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4NypCS0WsBz23gM for ; Fri, 20 Jan 2023 16:36:50 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 540B285677; Fri, 20 Jan 2023 06:36:37 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=amd.com header.i=@amd.com header.b="K0XQN31f"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0DBA785676; Fri, 20 Jan 2023 06:36:35 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2041.outbound.protection.outlook.com [40.107.236.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 53B788551C for ; Fri, 20 Jan 2023 06:36:32 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=ashok.reddy.soma@amd.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TWfYKrEJoZLBC1sITzYqvB52MzvHotR8qMcn6PuL7YoyhOWz0MVUCxAJH0dP2b+IEKs4CNVDhTVK0LhNwhon1tcQLOO+kG/PB+VyIDIi4jTED7V0omYuPzpZ3oZIwkCObV2JhAC5kKHVjb+eB5zEp9dXKY2QiuNv/fBpsAMriG7PpD9XF71d1V9Fyh+T3Cw/J8uk9OaHW1zbnnr7x52qNKEe9Nk0HbbL4F4oDFvte6OEn+/JrfytTKSzat5uSTAH/db4vgWB5ucTwmtKlZUlPm8OlT6Ifxy+81sd3wMQAWWPK54O5o/rcnSTXahhK8ai2o7oYiTB0nwlHHIK7uvk0g== 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=eWWPDOopXLy/nUMX07ylP2MmZUH+un5byiBNBX1aMwU=; b=LrRhL2EaX8bc4Rn+LiE7KjeRrRejXzdROSLqpVCrumsp2hPW64f/SbcI7UeEuF9S3W1xZ97/QeJ3kt+YflZBlpaesyY9rLUICYp+/hAzg2YOBNPOnyArS732v0r/1Xr08t4/bRaIxlRlY/i8wJ0j4i9I49G2tIUhPlZmsONV4pO3b8gQEKPghmjdnjkUfcOMRAAB2PTWfOHhNZwMwoitYlg+9C1YpNT8JGO4EKRT1xhiBEFzpbQQRhoOQWTfdhCljR3Ad24ioV8/C27+0Y5hh37FXIj/sv1YUvRNsWq6q67vIneOyAt1UXLAhRMo1nk2mfDzITjfOK7K01EPbuIpAg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.denx.de smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=eWWPDOopXLy/nUMX07ylP2MmZUH+un5byiBNBX1aMwU=; b=K0XQN31fwJbm1Cy4NhfGOlE7s+Xb7dqxcwyqg4bYT/6w7iwwLwvJQNwaDunbPZ0NGtW4DuF0b1pp6U2YAMynRNQfzWvCTz0DsvC8WGhjcn+93AjbtDeaqxLN+qq4SwZBerJej2TnR9uzzVbqgcQGGqQO4bCXWsieJ/6tPMfFlTg= Received: from BN9PR03CA0959.namprd03.prod.outlook.com (2603:10b6:408:108::34) by CH3PR12MB8210.namprd12.prod.outlook.com (2603:10b6:610:129::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.27; Fri, 20 Jan 2023 05:36:29 +0000 Received: from BN8NAM11FT068.eop-nam11.prod.protection.outlook.com (2603:10b6:408:108:cafe::f4) by BN9PR03CA0959.outlook.office365.com (2603:10b6:408:108::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.27 via Frontend Transport; Fri, 20 Jan 2023 05:36:28 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB03.amd.com; pr=C Received: from SATLEXMB03.amd.com (165.204.84.17) by BN8NAM11FT068.mail.protection.outlook.com (10.13.177.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6002.24 via Frontend Transport; Fri, 20 Jan 2023 05:36:28 +0000 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Thu, 19 Jan 2023 23:36:27 -0600 Received: from xhdashokred41.xilinx.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34 via Frontend Transport; Thu, 19 Jan 2023 23:36:25 -0600 From: Ashok Reddy Soma To: CC: , , , , Ashok Reddy Soma Subject: [PATCH v2 0/4] Fix sparse warnings Date: Thu, 19 Jan 2023 22:36:13 -0700 Message-ID: <20230120053617.32463-1-ashok.reddy.soma@amd.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT068:EE_|CH3PR12MB8210:EE_ X-MS-Office365-Filtering-Correlation-Id: 4e6cba8c-e8f4-444c-5c3c-08dafaa84744 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8pYaFSRkBlxL9M19ie6Pn6hz9a8HWYEMimZaD2O2T+QwO0LJY2fy/2MGLEV6MUpUkunCK1XjX40PKRHJiKNKyEOh7/5WLGkRyf5gZ+cblKVT2Z129lEneQX6OAJKmgXcSrwiPCahu2Q65eMw6Kw0L+ifsVnIrJwCrtMNxgbn5D1wx5I7ZAlXJx23b3KvvwrYImpdHMpDQC1tHudSEVHa+oRX/Pt3JID9V40004nVMeHCY8BYdlliuCMs2QCR4XEuTpkTlXyaFhVw8ycpIY2BDMoMc/Jemd9rlirezIfC92omvjCPZf78O8JdGwuIb6AJ3GwKif50oPTfk1xfZDk/xWglXq9I4cBtbG4l76b3B/GErDXLgOcVfFA4k9BCXcovVfePXxHeYNuqOEPOdgIq/rpCfqZ2ImbapV9p3AyfvHKS7lT2LpjojUf+WcJPgLxsdd5dW4co+KDcsuZ7yHRcdA5ssOfOqVgtRzgjeShpXekGHaSUSWraXX0U3T6FUvEo8eF/dUhb4H0VsGxGFNeNayQS97Jpn1qm97TLoINVawZ5zn/1qrIS9ThG9GSFMZQCgU5OAG3lfdz6TsSTZTiEcSgQDA94kSgwcDsWa35zgqvgfgTVziugArxqK1RsH5B/XodXZqsE0+4VI3wTJWbMT4oU2Cvwe/lcx0X8/gmyjvQWU2w/KZNtdYH1++YZlBCpQN6uIujO4+yKONQ6CY5brtxPccmo+KxrqZbp5FrRhNs= X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB03.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230022)(4636009)(346002)(396003)(376002)(39860400002)(136003)(451199015)(36840700001)(46966006)(40470700004)(40460700003)(86362001)(36756003)(103116003)(54906003)(336012)(47076005)(426003)(316002)(82310400005)(83380400001)(1076003)(6666004)(478600001)(2616005)(26005)(186003)(4744005)(8936002)(5660300002)(356005)(2906002)(40480700001)(81166007)(8676002)(4326008)(6916009)(36860700001)(70206006)(70586007)(41300700001)(82740400003)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jan 2023 05:36:28.2989 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4e6cba8c-e8f4-444c-5c3c-08dafaa84744 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT068.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR12MB8210 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean Run and fix sparse warnings in below files -drivers/mmc/zynq_sdhci.c -board/xilinx/common/board.h -drivers/gpio/zynqmp_gpio_modepin.c -board/xilinx/versal/board.c Changes in v2: - Included header file instead of declaring prototype - Modified description to reflect the same - Instead of removing ret variable, take it and return incase of error. - Updated description as per this. - Changed subject from missing prototype to missing header - Moved include file in alphabetical order - Updated description Algapally Santosh Sagar (4): xilinx: common: Include header file to fix warning gpio: zynqmp: Handle error from get_gpio_modepin xilinx: versal: Add missing header drivers: mmc: Change datatype of tuning_loop_counter to int board/xilinx/common/board.c | 1 + board/xilinx/versal/board.c | 1 + drivers/gpio/zynqmp_gpio_modepin.c | 3 +++ drivers/mmc/zynq_sdhci.c | 2 +- 4 files changed, 6 insertions(+), 1 deletion(-)