Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@lst.de>
To: Russell King <linux@armlinux.org.uk>
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	[thread overview]
Message-ID: <20240701055542.1315167-3-hch@lst.de> (raw)
In-Reply-To: <20240701055542.1315167-1-hch@lst.de>

get_mem_type is only used pci_remap_iospace and ioremap, no need to
export it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
---
 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);
 
-- 
2.43.0



  parent reply	other threads:[~2024-07-01  5:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-01  5:55 remove unused ioremap-related code and export (resend) Christoph Hellwig
2024-07-01  5:55 ` [PATCH 1/2] arm: remove ioremap_page Christoph Hellwig
2024-07-01  5:55 ` Christoph Hellwig [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-03-28  8:48 remove unused ioremap-related code and export Christoph Hellwig
2024-03-28  8:48 ` [PATCH 2/2] arm: unexport get_mem_type Christoph Hellwig

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240701055542.1315167-3-hch@lst.de \
    --to=hch@lst.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox