mm: THP: workaround: only allow including specific headers for FINEGRAINED_THP config...
[platform/kernel/linux-rpi.git] / mm / mmap.c
index 02eb014..cca7268 100644 (file)
--- a/mm/mmap.c
+++ b/mm/mmap.c
 #include <asm/cacheflush.h>
 #include <asm/tlb.h>
 #include <asm/mmu_context.h>
+#ifdef CONFIG_FINEGRAINED_THP
 #include <asm/finegrained_thp.h>
+#else
+#include <asm-generic/finegrained_thp.h>
+#endif
 
 #define CREATE_TRACE_POINTS
 #include <trace/events/mmap.h>