Skip to contentSkip to conversation

ARM: Allow use debug_ll_io_init as .map_io in machine description

RFC In review Alexander Shiyan 2 participants 2 messages Jun 26, 2013 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

RFC 1/1 ARM: Allow use debug_ll_io_init as .map_io in machine description

---
 arch/arm/include/asm/mach/map.h | 4 +---
 arch/arm/mm/mmu.c               | 4 ++++
 2 files changed, 5 insertions(+), 3 deletions(-)
arch/arm/include/asm/mach/map.h +1 -3
index 2fe141f..c1fafc5 100644
@@ -42,10 +42,8 @@ extern void vm_reserve_area_early(unsigned long addr, unsigned long size,
 
 #ifdef CONFIG_DEBUG_LL
 extern void debug_ll_addr(unsigned long *paddr, unsigned long *vaddr);
-extern void debug_ll_io_init(void);
-#else
-static inline void debug_ll_io_init(void) {}
 #endif
+extern void debug_ll_io_init(void);
 
 struct mem_type;
 extern const struct mem_type *get_mem_type(unsigned int type);
arch/arm/mm/mmu.c +4 -0
index d7229d2..557831b 100644
@@ -952,6 +952,10 @@ void __init debug_ll_io_init(void)
 	map.type = MT_DEVICE;
 	create_mapping(&map);
 }
+#else
+void __init debug_ll_io_init(void)
+{
+}
 #endif
 
 static void * __initdata vmalloc_min =
Signature · 1 line
1.8.1.5
#1 lore raw
Quoted 12 lines · On Wednesday 26 June 2013 08:33:47 Alexander Shiyan wrote:
---
 arch/arm/include/asm/mach/map.h | 4 +---
 arch/arm/mm/mmu.c               | 4 ++++
 2 files changed, 5 insertions(+), 3 deletions(-)
arch/arm/include/asm/mach/map.h +0 -0
index 2fe141f..c1fafc5 100644

arch/arm/include/asm/mach/map.h extern void vm_reserve_area_early(unsigned long addr, unsigned long size, · line 48

Quoted 10 lines
arch/arm/include/asm/mach/map.h +1 -3
@@ -42,10 +42,8 @@ extern void vm_reserve_area_early(unsigned long addr, unsigned long size,
 
 #ifdef CONFIG_DEBUG_LL
 extern void debug_ll_addr(unsigned long *paddr, unsigned long *vaddr);
-extern void debug_ll_io_init(void);
-#else
-static inline void debug_ll_io_init(void) {}
 #endif
+extern void debug_ll_io_init(void);
 
 struct mem_type;

Hi Alexander,

I don't think you need this, since having a NULL .map_io callback means the same thing. Just remove the reference in your platform code.

Arnd