]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb17e9e27f30c19a258052d6223e41ef80d8b6a54
tree853b621418026769d46bc79b44ae6271cf6abf8b
parent2709e6965501b31c115768196d25e0676160e077
riscv: tlb: Provide definition of tlb_flush() before including tlb.h

As of commit 11d8bd136119 ("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: 11d8bd136119 ("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