History

arm64: tlb: Provide forward declaration of tlb_flush() before including tlb.h

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.

Will Deacon committed 8 years ago

Commit d475fac1 parent 53a01c91 file · +2 −0Browse files

Unified · Split

arch/arm64/include/asm/tlb.h+2−0
@@ -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
36static void tlb_flush(struct mmu_gather *tlb);
37
36#include <asm-generic/tlb.h>38#include <asm-generic/tlb.h>
37 39
38static inline void tlb_flush(struct mmu_gather *tlb)40static inline void tlb_flush(struct mmu_gather *tlb)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t