[RFC] ARM: Allow use debug_ll_io_init as .map_io in machine description

Arnd Bergmann arnd at arndb.de
Wed Jun 26 05:05:12 EDT 2013


On Wednesday 26 June 2013 08:33:47 Alexander Shiyan wrote:
> 
> Signed-off-by: Alexander Shiyan <shc_work at mail.ru>
> ---
>  arch/arm/include/asm/mach/map.h | 4 +---
>  arch/arm/mm/mmu.c               | 4 ++++
>  2 files changed, 5 insertions(+), 3 deletions(-)
> 
> diff --git a/arch/arm/include/asm/mach/map.h b/arch/arm/include/asm/mach/map.h
> index 2fe141f..c1fafc5 100644
> --- a/arch/arm/include/asm/mach/map.h
> +++ b/arch/arm/include/asm/mach/map.h
> @@ -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



More information about the linux-arm-kernel mailing list