From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D9F59C6379F for ; Tue, 21 Feb 2023 07:04:39 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5DD60859E8; Tue, 21 Feb 2023 08:04:28 +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="Goe11qjf"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E834185A04; Tue, 21 Feb 2023 08:04:21 +0100 (CET) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on20619.outbound.protection.outlook.com [IPv6:2a01:111:f400:7eab::619]) (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 19FB785936 for ; Tue, 21 Feb 2023 08:04:19 +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=EJ4YFYE1VCP3VKlJGfFwzcpBjsCCW/9gYXtkjo6Y9vperhEZPD9ToLiFysjoN9nxe+YUDXKw/v0SuGaPte6WS2YjNIZzNcatNgL1JdHEmiVS1i4+bRDqmsCDjYfwf4kZ/6Oqo3Av0ap2kSxNp7udW3Zszs6qV/vpl0xOBEeABY9eRvCpncE0xORfKVttUtL+4M0+0xuLda+b4xwwskR/3hl1mU9CDsLOCUz13U5M9K5x5IOTtHytNSlVVa/1xldaYl9MURKf6LPvSNFXZufriCxDplTfE2aRbKKFcRVMdwhjFTksWRD0Drzk+5aZwFsHE+juHmYjTvvIAe0YcQ+ovQ== 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=XsSd+K1wGDodPTfv4jD0OfLSD5J51PmRfAdLTnq9bYU=; b=Q48MfE8WjFrsquGsnrOf6feQPRc/RAcG0CNX/D/r2UJafPDg+BRuKo95e9qKCsdy7mqGoBHqpFyh6VowVr1AbgFDumurRXheKvZv/mhCKsgGKBNVqBuDptdrkpkjEYAx0P72Gae6dxA+pQ6K0tIq2IYKMAMUiGNCejVTqpcTbmtBKaGEnbgvy3FOf4UFMV1XbA0+rUaQA0rNu0nSLfZW4DZjpdRKCbAcls9jpIa2WEjhPe9iQ2V44hsvltcUauMDb7dFe4F39uiMprXtgJ7j7rQuvZDiRyrBwG94L3swhu4QlmVg87WLVxcfdwXLUWOO+8r6Yn2UlQ/2qbfmueX1ew== 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=XsSd+K1wGDodPTfv4jD0OfLSD5J51PmRfAdLTnq9bYU=; b=Goe11qjfj4Do+PTtjrJmk4WChKXs7256TUbPvm/q8KwkropfE6bosJI6h9TGfzQEAtkdAWxatykLzvXqHBCCPKyckGxb11TFVVY1Q6QZG1n7xURsODB0zOJMraCTd1xLPoBml1uAQzmBIf4UgYY075OAlzevsE5A63Zxmu9Ajmo= Received: from DM5PR07CA0089.namprd07.prod.outlook.com (2603:10b6:4:ae::18) by SJ1PR12MB6194.namprd12.prod.outlook.com (2603:10b6:a03:458::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6111.20; Tue, 21 Feb 2023 07:04:15 +0000 Received: from DM6NAM11FT057.eop-nam11.prod.protection.outlook.com (2603:10b6:4:ae:cafe::36) by DM5PR07CA0089.outlook.office365.com (2603:10b6:4:ae::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6111.20 via Frontend Transport; Tue, 21 Feb 2023 07:04:15 +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=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by DM6NAM11FT057.mail.protection.outlook.com (10.13.172.252) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6134.17 via Frontend Transport; Tue, 21 Feb 2023 07:04:14 +0000 Received: from SATLEXMB08.amd.com (10.181.40.132) 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; Tue, 21 Feb 2023 01:04:13 -0600 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB08.amd.com (10.181.40.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Mon, 20 Feb 2023 23:04:12 -0800 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; Tue, 21 Feb 2023 01:04:09 -0600 From: Ashok Reddy Soma To: CC: , , , , , , , , Algapally Santosh Sagar , Ashok Reddy Soma Subject: [PATCH 1/2] xilinx: zynqmp: Add missing prototype for zynqmp_mmio_write Date: Tue, 21 Feb 2023 00:03:46 -0700 Message-ID: <20230221070347.32152-2-ashok.reddy.soma@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230221070347.32152-1-ashok.reddy.soma@amd.com> References: <20230221070347.32152-1-ashok.reddy.soma@amd.com> MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT057:EE_|SJ1PR12MB6194:EE_ X-MS-Office365-Filtering-Correlation-Id: aee7fe3d-48d9-48f2-1df8-08db13d9d79c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ePRkitPcfKEYSV6+BGnRh5vlDP7Kw4mysH/5RgWNoB2dbZrPGCfQhpyVxaUcfQ00sUQO31rEAbWX87+e4houLlbu6xs76KeK/92Ut7uOOcCMzGL/q2IQs28bqsepkym1XZoxEpxn5K1hUAWP6pz68DZi3HD/FPDIaNkcsNebR6Yl87DcpQqA5KVz2FiefjVPCUL1bkaGwlfdnnMVGn/kKTk5wGNegoggXbN9I6gnGDWk29wHuQCeHF+Anftjjy9LYeKmOAzVO1XJ6z4pHK4q4wWde3mhQ1MLsKYXrIRTPaF5m2DEz0x6nOMKFl67jJjS6Qs06xoLtN9u8KXXAWy9eUfIWRlYysKWlNuE++28XtWZzejQXfH7cIJI0kV+QSgR5jDqBvHGQxDGjgTt46BtgddY061G6bSiwaI2y360gpOZa2gCtkRW/f7zbnFVChnza1EHls+JsTpovPQEliNPBGVEaM5riyWuqcg5sfFIGYc94PafDwWrpSAZ8/5BEWrxsbD0/ItbkDiMvPZP0Yj71bAfdBxmIVXQ9+hlOmpTvZt95uvjhZ7EyWgo0hjJFEkAT+B+J6s4HtZ7FiEYklYFQdsr0avbyOQYpjeLB7zOjdKAKnlWSXW++RDYTzO/26R94xP2dnjUJ5dQpFWFV5MHlgirLf5cgvUoJ1u/XfK5bpJezojLtEvb2YLvoUvEL/ZJq4XWB73VAgXNouZkcHV8EPF0nC2LzTkuLTdIkUY66UE= X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230025)(4636009)(396003)(136003)(346002)(376002)(39860400002)(451199018)(46966006)(40470700004)(36840700001)(26005)(1076003)(478600001)(6666004)(316002)(8936002)(54906003)(356005)(70586007)(6916009)(4326008)(70206006)(8676002)(86362001)(40480700001)(41300700001)(82740400003)(2616005)(426003)(5660300002)(47076005)(336012)(81166007)(83380400001)(82310400005)(2906002)(103116003)(36860700001)(36756003)(40460700003)(186003)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Feb 2023 07:04:14.8439 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: aee7fe3d-48d9-48f2-1df8-08db13d9d79c 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=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT057.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ1PR12MB6194 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 From: Algapally Santosh Sagar Add missing prototype to fix the sparse warning, warning: no previous prototype for 'zynqmp_mmio_write' [-Wmissing-prototypes]. Signed-off-by: Algapally Santosh Sagar Signed-off-by: Ashok Reddy Soma --- arch/arm/mach-versal-net/include/mach/sys_proto.h | 7 +------ arch/arm/mach-versal/include/mach/sys_proto.h | 6 +----- drivers/mmc/zynq_sdhci.c | 1 + drivers/spi/zynqmp_gqspi.c | 5 +++++ 4 files changed, 8 insertions(+), 11 deletions(-) diff --git a/arch/arm/mach-versal-net/include/mach/sys_proto.h b/arch/arm/mach-versal-net/include/mach/sys_proto.h index 5bba9030f2..a20cf02712 100644 --- a/arch/arm/mach-versal-net/include/mach/sys_proto.h +++ b/arch/arm/mach-versal-net/include/mach/sys_proto.h @@ -8,9 +8,4 @@ void mem_map_fill(void); -static inline int zynqmp_mmio_write(const u32 address, const u32 mask, - const u32 value) -{ - BUILD_BUG(); - return -EINVAL; -} +int zynqmp_mmio_write(const u32 address, const u32 mask, const u32 value); diff --git a/arch/arm/mach-versal/include/mach/sys_proto.h b/arch/arm/mach-versal/include/mach/sys_proto.h index 8e5712e0c9..3f01508ecb 100644 --- a/arch/arm/mach-versal/include/mach/sys_proto.h +++ b/arch/arm/mach-versal/include/mach/sys_proto.h @@ -13,8 +13,4 @@ enum { void tcm_init(u8 mode); void mem_map_fill(void); -static inline int zynqmp_mmio_write(const u32 address, const u32 mask, const u32 value) -{ - BUILD_BUG(); - return -EINVAL; -} +int zynqmp_mmio_write(const u32 address, const u32 mask, const u32 value); diff --git a/drivers/mmc/zynq_sdhci.c b/drivers/mmc/zynq_sdhci.c index 8b559d8a7a..9dc310663f 100644 --- a/drivers/mmc/zynq_sdhci.c +++ b/drivers/mmc/zynq_sdhci.c @@ -14,6 +14,7 @@ #include "mmc_private.h" #include #include +#include #include #include #include diff --git a/drivers/spi/zynqmp_gqspi.c b/drivers/spi/zynqmp_gqspi.c index 335b458cb9..c4aee279aa 100644 --- a/drivers/spi/zynqmp_gqspi.c +++ b/drivers/spi/zynqmp_gqspi.c @@ -183,6 +183,11 @@ struct zynqmp_qspi_priv { const struct spi_mem_op *op; }; +__weak int zynqmp_mmio_write(const u32 address, const u32 mask, const u32 value) +{ + return 0; +} + static int zynqmp_qspi_of_to_plat(struct udevice *bus) { struct zynqmp_qspi_plat *plat = dev_get_plat(bus); -- 2.17.1