From patchwork Fri Feb 24 04:53:17 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: 1747318 X-Patchwork-Delegate: monstr@monstr.eu 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=AgXLS8bv; 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)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PNHcP4lCTz240f for ; Fri, 24 Feb 2023 15:54:29 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9EE56853AA; Fri, 24 Feb 2023 05:54:15 +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="AgXLS8bv"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A41C6858FB; Fri, 24 Feb 2023 05:54:06 +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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on20614.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e89::614]) (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 5B2A0857FB for ; Fri, 24 Feb 2023 05:53:59 +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=cZUMBspZ9Kxo9U2T3b/wPNNuA55/cojQuKXJQRQoTv0rrDtuzgA0Lp/2nsFeukWzSToSmwtt2uTJlpBP3eTUX4Iu5FudTa34WxLmTBTAkfrjt8CdY5Z2NH9/JxBFaEgYq9BZGaYGV0WgKE5KHrUyYNWo6PPS1q2FjlRxz6ChBtV+7VVd68GoH0cGhgXE10nsfwIazuCGQTpF3/DwPYrtclc/5pS0lAiANGhs0nE225107L+T1+hL/5JR28uc2i30Ru4mY0rQBGbTisL1gnuI+BA7MgI8pZagoeti4Gs2K8N+ayJD+p268iRDv7CntXMDZYXa2f2PPI4V+uvsb+8O0g== 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=Ap1W4zeW/AoGwisaBOqMJL6Ja+38hosm3PIXOee9v/8=; b=DHolMVIEC+/SNGzU+k/DtG3GnVjc+SZDFuQaTDEGlG0dsYmk1EF4B3AediyQfBCuKPYk/XrXdjYHwlWgbTGqBNSv9X6Gt2PRtthO8FvAf5YHuYwSy3SFgF9XGn4p7ndt1qQC25KFJck1NnENJrT5BMtqhsUUlRUGClY+E7Wv7/5phr/Op7QIRUr25CRZDTnYkcVrbjSiZfTk2H7VkETC8WS15QQzgQKFyw673k8qneIPsjrN90gfkho2MNZrI5HKvEAl2kKyC8BMHmxJOXh+jpkt6hQaGEqmy4VarfbduB5UE5T/QWgQ7b+iK0TUeHDmZ8rohjU6bXPXxqvC3v8qFA== 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=Ap1W4zeW/AoGwisaBOqMJL6Ja+38hosm3PIXOee9v/8=; b=AgXLS8bvGKT2m8L1fJCfPiC/tVCTTSQSXHOatqBbo17uD80hBmoJ6vP+wGA6jxFYXXUGHz9d35vhgZl7rXGxm0UmsiEmPhgG9SBHfST/rBY7RbPU809eQNq35oA3cwB/CPiM4dlLoGCA/CCJo2KVXy+NVZbLmGt2EcuNtn2A2zY= Received: from MW4P223CA0024.NAMP223.PROD.OUTLOOK.COM (2603:10b6:303:80::29) by BL1PR12MB5333.namprd12.prod.outlook.com (2603:10b6:208:31f::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.21; Fri, 24 Feb 2023 04:53:51 +0000 Received: from CO1NAM11FT044.eop-nam11.prod.protection.outlook.com (2603:10b6:303:80:cafe::1f) by MW4P223CA0024.outlook.office365.com (2603:10b6:303:80::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.21 via Frontend Transport; Fri, 24 Feb 2023 04:53:51 +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 CO1NAM11FT044.mail.protection.outlook.com (10.13.175.188) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6134.24 via Frontend Transport; Fri, 24 Feb 2023 04:53:50 +0000 Received: from SATLEXMB07.amd.com (10.181.41.45) 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; Thu, 23 Feb 2023 22:53:38 -0600 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB07.amd.com (10.181.41.45) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Thu, 23 Feb 2023 20:53:34 -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; Thu, 23 Feb 2023 22:53:30 -0600 From: Ashok Reddy Soma To: CC: , , , , , , , , , , , , , "Algapally Santosh Sagar" , Ashok Reddy Soma Subject: [PATCH v2 1/2] xilinx: zynqmp: Add missing prototype for zynqmp_mmio_write Date: Thu, 23 Feb 2023 21:53:17 -0700 Message-ID: <20230224045318.3230-2-ashok.reddy.soma@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230224045318.3230-1-ashok.reddy.soma@amd.com> References: <20230224045318.3230-1-ashok.reddy.soma@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT044:EE_|BL1PR12MB5333:EE_ X-MS-Office365-Filtering-Correlation-Id: 2a6b82d4-153c-486a-36bd-08db16231f49 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: gveeXVCojtx+mAiX4M9+o9BV4d9GpjFlJ8UYJtQ1V3urFEquGmBv4uTG7boV/hqedVi7V3cY8TzFU+r1t2Ezu4q10C7txJuyBnyLYB97HgJxgPjrriymZHDkkdem2+YgLLfts1pcHp7uwIa1bDj/6KPvJ6rrcda4+b3JYUeRy60KYxVmAML61lh4LRbTLuLKD/T2tf6/QVf1436h9CeG08ysr7Rl9NDQKPAa4y0KNfmKqmod+vasHABPppS6hQp9L3ViOqP5Q815yeUMdVOiCyA8rflAHESCF/pJbAcNW4TfllcGkdCBRO0o+XQ64yHJDIN+LxdjFKC5v1WYmYG6y6ExicmpH5JqRUj/ytnBAfPfGT8AuVSGyiHD9+hFQM92MXStH1u8nua6cvoFCRC1BxgB0J7EYaGZgfpJqQj40g+cbX8OAAtslwBKW0zATo/Pvo0PTKydfxV96gLu+noztxCJP67hxjG198RTe5Htoi346OJ+bdsHsCSQOFztobXqFyvSL4AnnFsoxbpByEUagZJ8VU6M2A0munxOwTiy3dbDXkiaM4hKv0lqxv0rtW8Ftr287SmnU8rhvMttYYt+Ju484f4u3AH4RIGP1EYQqcp5TuAfNJ7zeMOXAToga5q5l/G0DCwn3VkwpuJTPqlrk9gwracEZgT+DH3OarJWHQOXYTZHG9z8Wxv/KGjArPXjgtwkLw3xodC7Uth17fsxbo9AKQneFpnGzxar0FU9hyQ= 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)(39860400002)(396003)(376002)(346002)(136003)(451199018)(36840700001)(46966006)(40470700004)(2906002)(81166007)(36756003)(82740400003)(316002)(336012)(6666004)(36860700001)(41300700001)(2616005)(426003)(40480700001)(103116003)(40460700003)(70586007)(1076003)(70206006)(47076005)(82310400005)(5660300002)(478600001)(83380400001)(54906003)(6916009)(4326008)(356005)(8676002)(8936002)(7416002)(26005)(186003)(86362001)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Feb 2023 04:53:50.5896 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2a6b82d4-153c-486a-36bd-08db16231f49 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: CO1NAM11FT044.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR12MB5333 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 --- (no changes since v1) 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);