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.
Unified · Split
| @@ -33,6 +33,8 @@ static inline void __tlb_remove_table(void *_table) · 32 unmodified lines | |||
| 33 | #define tlb_remove_entry(tlb, entry) tlb_remove_page(tlb, entry) | 33 | #define tlb_remove_entry(tlb, entry) tlb_remove_page(tlb, entry) |
| 34 | #endif /* CONFIG_HAVE_RCU_TABLE_FREE */ | 34 | #endif /* CONFIG_HAVE_RCU_TABLE_FREE */ |
| 35 | 35 | ||
| 36 | static void tlb_flush(struct mmu_gather *tlb); | ||
| 37 | |||
| 36 | #include <asm-generic/tlb.h> | 38 | #include <asm-generic/tlb.h> |
| 37 | 39 | ||
| 38 | static inline void tlb_flush(struct mmu_gather *tlb) | 40 | static inline void tlb_flush(struct mmu_gather *tlb) |