aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-generic/tlb.h
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2018-08-24 13:28:28 +0100
committerWill Deacon <will.deacon@arm.com>2018-09-04 11:08:26 +0100
commitfaaadaf315b48d40b39bf4f0011fa740f40fbe9e (patch)
tree4dfdc8acc7b05ee33f8a9e8312a726153fc86bcb /include/asm-generic/tlb.h
parentLinux 4.19-rc2 (diff)
downloadlinux-dev-faaadaf315b48d40b39bf4f0011fa740f40fbe9e.tar.xz
linux-dev-faaadaf315b48d40b39bf4f0011fa740f40fbe9e.zip
asm-generic/tlb: Guard with #ifdef CONFIG_MMU
The inner workings of the mmu_gather-based TLB invalidation mechanism are not relevant to nommu configurations, so guard them with an #ifdef. This allows us to implement future functions using static inlines without breaking the build. Acked-by: Nicholas Piggin <npiggin@gmail.com> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to '')
-rw-r--r--include/asm-generic/tlb.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-generic/tlb.h b/include/asm-generic/tlb.h
index b3353e21f3b3..a25e236f7a7f 100644
--- a/include/asm-generic/tlb.h
+++ b/include/asm-generic/tlb.h
@@ -20,6 +20,8 @@
#include <asm/pgalloc.h>
#include <asm/tlbflush.h>
+#ifdef CONFIG_MMU
+
#ifdef CONFIG_HAVE_RCU_TABLE_FREE
/*
* Semi RCU freeing of the page directories.
@@ -310,6 +312,8 @@ static inline void tlb_remove_check_page_size_change(struct mmu_gather *tlb,
#endif
#endif
+#endif /* CONFIG_MMU */
+
#define tlb_migrate_finish(mm) do {} while (0)
#endif /* _ASM_GENERIC__TLB_H */