]> git.baikalelectronics.ru Git - kernel.git/commitdiff
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)
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

index c229509288ea2d77c9efe72cfb1ccb0105371296..439dc7072e05bf37a722bb983b69dabed39651fa 100644 (file)
 #ifndef _ASM_RISCV_TLB_H
 #define _ASM_RISCV_TLB_H
 
+struct mmu_gather;
+
+static void tlb_flush(struct mmu_gather *tlb);
+
 #include <asm-generic/tlb.h>
 
 static inline void tlb_flush(struct mmu_gather *tlb)