All of lore.kernel.org
 help / color / mirror / Atom feed
* remove unused ioremap-related code and export
@ 2024-03-28  8:48 ` Christoph Hellwig
  0 siblings, 0 replies; 6+ messages in thread
From: Christoph Hellwig @ 2024-03-28  8:48 UTC (permalink / raw)
  To: Russell King; +Cc: linux-arm-kernel, linux-kernel

Hi Russell,

this series removes one unused function and one unused export
from the ARM ioremap code.

Subject:
 include/asm/mach/map.h |    7 -------
 mm/ioremap.c           |    8 --------
 mm/mmu.c               |    1 -
 3 files changed, 16 deletions(-)

^ permalink raw reply	[flat|nested] 6+ messages in thread

* remove unused ioremap-related code and export
@ 2024-03-28  8:48 ` Christoph Hellwig
  0 siblings, 0 replies; 6+ messages in thread
From: Christoph Hellwig @ 2024-03-28  8:48 UTC (permalink / raw)
  To: Russell King; +Cc: linux-arm-kernel, linux-kernel

Hi Russell,

this series removes one unused function and one unused export
from the ARM ioremap code.

Subject:
 include/asm/mach/map.h |    7 -------
 mm/ioremap.c           |    8 --------
 mm/mmu.c               |    1 -
 3 files changed, 16 deletions(-)

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH 1/2] arm: remove ioremap_page
  2024-03-28  8:48 ` Christoph Hellwig
@ 2024-03-28  8:48   ` Christoph Hellwig
  -1 siblings, 0 replies; 6+ messages in thread
From: Christoph Hellwig @ 2024-03-28  8:48 UTC (permalink / raw)
  To: Russell King; +Cc: linux-arm-kernel, linux-kernel

ioremap_page isn't used anywhere, remove it.

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


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 1/2] arm: remove ioremap_page
@ 2024-03-28  8:48   ` Christoph Hellwig
  0 siblings, 0 replies; 6+ messages in thread
From: Christoph Hellwig @ 2024-03-28  8:48 UTC (permalink / raw)
  To: Russell King; +Cc: linux-arm-kernel, linux-kernel

ioremap_page isn't used anywhere, remove it.

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


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 2/2] arm: unexport get_mem_type
  2024-03-28  8:48 ` Christoph Hellwig
@ 2024-03-28  8:48   ` Christoph Hellwig
  -1 siblings, 0 replies; 6+ messages in thread
From: Christoph Hellwig @ 2024-03-28  8:48 UTC (permalink / raw)
  To: Russell King; +Cc: linux-arm-kernel, linux-kernel

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 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);
 
-- 
2.39.2


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 2/2] arm: unexport get_mem_type
@ 2024-03-28  8:48   ` Christoph Hellwig
  0 siblings, 0 replies; 6+ messages in thread
From: Christoph Hellwig @ 2024-03-28  8:48 UTC (permalink / raw)
  To: Russell King; +Cc: linux-arm-kernel, linux-kernel

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 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);
 
-- 
2.39.2


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-03-28  8:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-28  8:48 remove unused ioremap-related code and export Christoph Hellwig
2024-03-28  8:48 ` Christoph Hellwig
2024-03-28  8:48 ` [PATCH 1/2] arm: remove ioremap_page Christoph Hellwig
2024-03-28  8:48   ` Christoph Hellwig
2024-03-28  8:48 ` [PATCH 2/2] arm: unexport get_mem_type Christoph Hellwig
2024-03-28  8:48   ` Christoph Hellwig

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.