Skip to content

Commit 0ce5671

Browse files
wildea01palmer-dabbelt
authored andcommitted
riscv: tlb: Provide definition of tlb_flush() before including tlb.h
As of commit fd1102f ("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: fd1102f ("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>
1 parent 11f65ad commit 0ce5671

File tree

1 file changed

+4
-0
lines changed
  • arch/riscv/include/asm

1 file changed

+4
-0
lines changed

arch/riscv/include/asm/tlb.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
#ifndef _ASM_RISCV_TLB_H
1515
#define _ASM_RISCV_TLB_H
1616

17+
struct mmu_gather;
18+
19+
static void tlb_flush(struct mmu_gather *tlb);
20+
1721
#include <asm-generic/tlb.h>
1822

1923
static inline void tlb_flush(struct mmu_gather *tlb)

0 commit comments

Comments
 (0)