From patchwork Mon Jul 1 05:55:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoph Hellwig X-Patchwork-Id: 13717567 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 C82CFC2BD09 for ; Mon, 1 Jul 2024 05:56:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=87r5x8yvk4pmIPSxtncBSZOCnuL3Cqow52VGH9eEERU=; b=0xOb6XmUGzftPLNf2Y04jkAi0/ Uutt5vkvjvLrRcv84vn7k0SjzzvLn7aZJ+pWxtXBupbM9h2lzps+eLGw6+juW9QL9rEbN93DU07hN ojQt6GJbiuw7c2tZgA676mukiAmfG55aKFRPGhhF6vxqhOrHirirGsYPUukQxKtwFJDKhNFRSgjP7 dL0csbCKkh4VJ2OJlUhI9nCwF2OR3s3YSP4QKP7FWVQ2TVtHWqfegFSnPTKyKzxLS+/CjKXQgLK8r 2PejCm/Ixd6tSYtEiUJ3HxFSksctQ8aKCNxtVaN/gMWRDWqh1+ex1YH3FuHEU/KkZsqxuHibGGRY1 lzMdekRg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOA1E-00000001nkh-32c3; Mon, 01 Jul 2024 05:56:04 +0000 Received: from 2a02-8389-2341-5b80-ec0f-1986-7d09-2a29.cable.dynamic.v6.surfer.at ([2a02:8389:2341:5b80:ec0f:1986:7d09:2a29] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOA0z-00000001ncT-2Oxg; Mon, 01 Jul 2024 05:55:49 +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: Mon, 1 Jul 2024 07:55:38 +0200 Message-ID: <20240701055542.1315167-2-hch@lst.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240701055542.1315167-1-hch@lst.de> References: <20240701055542.1315167-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; From patchwork Mon Jul 1 05:55:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoph Hellwig X-Patchwork-Id: 13717568 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 4A169C3065A for ; Mon, 1 Jul 2024 05:56:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=LnUMD5VlNWuEiRILZkTBM1jY1yfOCSMcWfOfroRWSW8=; b=3TFoPLZP1SDjtyq535mTqqQA+N AZ/qwh7OiEnyZF/qas51QCGUpHBkd3kfOEmRaFBTI/vMjln5R5HBczVj9/By8UbbUkqKb7zSgR+HW ytpeMd9FTT/uYHhUqaealw4UUoFVNIHoiljD2olKe1yc7OZCTTNnTG3yFvUK3+6gkijswebFvD+/+ O9PIQcWzS238AXAalwF1fpj0EOJMDuU4jzgyc6E7lg+GKGegBPWGDr+KqC9UhnSTOLztl3pRIDIk2 PaCBCbJTnLjKQ+dMvoDykakhVAD9kScXSutdlS+ICEjHuln3weH+RWBhUzQbpSmQGBQE1VKQJlORv wz7hdAmQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOA1N-00000001nov-00zg; Mon, 01 Jul 2024 05:56:13 +0000 Received: from 2a02-8389-2341-5b80-ec0f-1986-7d09-2a29.cable.dynamic.v6.surfer.at ([2a02:8389:2341:5b80:ec0f:1986:7d09:2a29] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOA12-00000001ndE-0cOK; Mon, 01 Jul 2024 05:55:52 +0000 From: Christoph Hellwig To: Russell King Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] arm: unexport get_mem_type Date: Mon, 1 Jul 2024 07:55:39 +0200 Message-ID: <20240701055542.1315167-3-hch@lst.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240701055542.1315167-1-hch@lst.de> References: <20240701055542.1315167-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 get_mem_type is only used pci_remap_iospace and ioremap, no need to export it. Signed-off-by: Christoph Hellwig --- arch/arm/include/asm/mach/map.h | 2 -- arch/arm/mm/mmu.c | 1 - 2 files changed, 3 deletions(-) diff --git a/arch/arm/include/asm/mach/map.h b/arch/arm/include/asm/mach/map.h index 03f456cb53644f..30de16b65297e2 100644 --- a/arch/arm/include/asm/mach/map.h +++ b/arch/arm/include/asm/mach/map.h @@ -50,8 +50,6 @@ extern void debug_ll_io_init(void); static inline void debug_ll_io_init(void) {} #endif -struct mem_type; -extern const struct mem_type *get_mem_type(unsigned int type); #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/mmu.c b/arch/arm/mm/mmu.c index 3f774856ca6763..fb4835e1046f73 100644 --- a/arch/arm/mm/mmu.c +++ b/arch/arm/mm/mmu.c @@ -350,7 +350,6 @@ const struct mem_type *get_mem_type(unsigned int type) { return type < ARRAY_SIZE(mem_types) ? &mem_types[type] : NULL; } -EXPORT_SYMBOL(get_mem_type); static pte_t *(*pte_offset_fixmap)(pmd_t *dir, unsigned long addr);