]> 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)
commit00b699f5b7c1048371a8df5c57a2b81a1de1d6a4
tree853b621418026769d46bc79b44ae6271cf6abf8b
parent5b119f26ed095555c043e943c3af3105f23f00c2
riscv: tlb: Provide definition of tlb_flush() before including tlb.h

As of commit 0959942f11b2 ("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: 0959942f11b2 ("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