From patchwork Thu Mar 28 08:48:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoph Hellwig X-Patchwork-Id: 13608200 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 66CCBC54E67 for ; Thu, 28 Mar 2024 08:49: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: 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=buxgAxagSpisemM7z92vEC/LBWKtZuDRHOdqL61Za0k=; b=SolFQaDPAvBb6Q ZR0Yyn8afdaeW3JH+FHp375Z5b/A7fB1EVINTnsCWtFCTA4zd6B9XkcCnrLzWdE/bow6Iq6WYO1Pn T54HzvwEp47FnLjaac87DtnEaF8PLJLAYTjwPtf1Ih/mRFZmBe2UjkSygtN1fxpKXbw3tQsRDHepq RSCJfPuN6cSTBc3nFV/o/Nr3Q72kProct2JtQ5tO+p+QdCKVy9bgmq6XCuwCFhXTX7LbMEx9appk9 b2a1wWrjvPkzRc7jFMCvr+pVw+I21nj0kJJxBfKady7G1bl9HT1icH0x3bF66wDlvOr0qTrk7Gvim iaaM2WKAg4xqhlO+SWgw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rplRV-0000000D9Gr-1UvO; Thu, 28 Mar 2024 08:49:01 +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 1rplRA-0000000D981-0YMr; Thu, 28 Mar 2024 08:48:50 +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: Thu, 28 Mar 2024 09:48:31 +0100 Message-Id: <20240328084831.2955605-3-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 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 c24e29c0b9a48e..ed43f7b79b5a47 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);