riscv: tlb: Provide definition of tlb_flush() before including tlb.h
authorWill Deacon <will.deacon@arm.com>
Fri, 24 Aug 2018 18:22:55 +0000 (11:22 -0700)
committerPalmer Dabbelt <palmer@sifive.com>
Tue, 28 Aug 2018 19:58:35 +0000 (12:58 -0700)
commit0ce5671c4450527f90d2bfb31302f78580587983
tree853b621418026769d46bc79b44ae6271cf6abf8b
parent11f65ad111fa29de2d11929f773bf1e553d5b7c4
riscv: tlb: Provide definition of tlb_flush() before including tlb.h

As of commit fd1102f0aade ("mm: mmu_notifier fix for tlb_end_vma"),
asm-generic/tlb.h now calls tlb_flush() from a static inline function,
so we need to make sure that it's declared before #including the
asm-generic header in the arch header.

Reported-by: Guenter Roeck <linux@roeck-us.net>
Fixes: fd1102f0aade ("mm: mmu_notifier fix for tlb_end_vma")
Signed-off-by: Will Deacon <will.deacon@arm.com>
[groeck: Use forward declaration instead of moving inline function]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
arch/riscv/include/asm/tlb.h