From patchwork Thu Mar 28 08:48:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoph Hellwig X-Patchwork-Id: 13608199 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1CCD3C54E64 for ; Thu, 28 Mar 2024 08:49:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=n+Zi0UTisul9fbvlmu3zWtikR8T/KoKrOr+lX5ZzQNY=; b=VRAdnb1qqo5URp Yaxs+x3z55AoiiuCItgLPjegrw8gWzxvs8t/Mozr+09LEw5cCA5IgzFkFOTu2S0tFh2MN06tXQ4Wh C7wCMK1fyz8bmFfIfsnd00HQPgb71jcyYXbU0lL2rPGL7BL8SVdxtbEpYbwbxgpfRnQ/Y/1Dnw864 gvVd2g/pMvy5sJxQPDh385U9BWc/1eYylvadwmKCxfsnfQkRR65pMxEEokVTmTk7S7O73znqD6oxS onPnDf/+ZaEuM6bltLFewsQXVS92Ce72aWRM9N4zX38Fb8XUkq/nULCVzb2iBzOzORrzSZ8y4ef3S rIjN8O+5eoVGt/y8NjVg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rplRU-0000000D9GU-385d; Thu, 28 Mar 2024 08:49:00 +0000 Received: from 2a02-8389-2341-5b80-39d3-4735-9a3c-88d8.cable.dynamic.v6.surfer.at ([2a02:8389:2341:5b80:39d3:4735:9a3c:88d8] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.97.1 #2 (Red Hat Linux)) id 1rplR7-0000000D96v-1zDk; Thu, 28 Mar 2024 08:48:37 +0000 From: Christoph Hellwig To: Russell King Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] arm: remove ioremap_page Date: Thu, 28 Mar 2024 09:48:30 +0100 Message-Id: <20240328084831.2955605-2-hch@lst.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240328084831.2955605-1-hch@lst.de> References: <20240328084831.2955605-1-hch@lst.de> MIME-Version: 1.0 X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org ioremap_page isn't used anywhere, remove it. Signed-off-by: Christoph Hellwig --- arch/arm/include/asm/mach/map.h | 5 ----- arch/arm/mm/ioremap.c | 8 -------- 2 files changed, 13 deletions(-) diff --git a/arch/arm/include/asm/mach/map.h b/arch/arm/include/asm/mach/map.h index 2b8970d8e5a2ff..03f456cb53644f 100644 --- a/arch/arm/include/asm/mach/map.h +++ b/arch/arm/include/asm/mach/map.h @@ -52,11 +52,6 @@ static inline void debug_ll_io_init(void) {} struct mem_type; extern const struct mem_type *get_mem_type(unsigned int type); -/* - * external interface to remap single page with appropriate type - */ -extern int ioremap_page(unsigned long virt, unsigned long phys, - const struct mem_type *mtype); #else #define iotable_init(map,num) do { } while (0) #define vm_reserve_area_early(a,s,c) do { } while (0) diff --git a/arch/arm/mm/ioremap.c b/arch/arm/mm/ioremap.c index 794cfea9f9d4c8..6debe27b3a72fb 100644 --- a/arch/arm/mm/ioremap.c +++ b/arch/arm/mm/ioremap.c @@ -107,14 +107,6 @@ void __init add_static_vm_early(struct static_vm *svm) list_add_tail(&svm->list, &curr_svm->list); } -int ioremap_page(unsigned long virt, unsigned long phys, - const struct mem_type *mtype) -{ - return vmap_page_range(virt, virt + PAGE_SIZE, phys, - __pgprot(mtype->prot_pte)); -} -EXPORT_SYMBOL(ioremap_page); - void __check_vmalloc_seq(struct mm_struct *mm) { int seq;