• Anders Roxell's avatar
    arm/asm/tlb.h: Fix build error implicit func declaration · 063daa81
    Anders Roxell authored
    Building on arm 32 with LPAE enabled we don't include asm-generic/tlb.h,
    where we have tlb_flush_remove_tables_local and tlb_flush_remove_tables
    defined.
    
    The build fails with:
    
      mm/memory.c: In function ‘tlb_remove_table_smp_sync’:
      mm/memory.c:339:2: error: implicit declaration of function ‘tlb_flush_remove_tables_local’; did you mean ‘tlb_remove_table’? [-Werror=implicit-function-declaration]
      ...
    
    This bug got introduced in:
    
      2ff6ddf1 ("x86/mm/tlb: Leave lazy TLB mode at page table free time")
    
    To fix this issue we define them in arm 32's specific asm/tlb.h file as well.
    Signed-off-by: default avatarAnders Roxell <anders.roxell@linaro.org>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: dave.hansen@intel.com
    Cc: linux-arm-kernel@lists.infradead.org
    Cc: linux@armlinux.org.uk
    Cc: riel@surriel.com
    Cc: songliubraving@fb.com
    Fixes: 2ff6ddf1 ("x86/mm/tlb: Leave lazy TLB mode at page table free time")
    Link: http://lkml.kernel.org/r/20180725095557.19668-1-anders.roxell@linaro.orgSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
    063daa81
tlb.h 7.31 KB