mm: THP: workaround: only allow including specific headers for FINEGRAINED_THP config...
[platform/kernel/linux-rpi.git] / mm / memory.c
index 0833604..bdf18e9 100644 (file)
 #include <linux/uaccess.h>
 #include <asm/tlb.h>
 #include <asm/tlbflush.h>
+#ifdef CONFIG_FINEGRAINED_THP
 #include <asm/huge_mm.h>
 #include <asm/finegrained_thp.h>
+#else
+#include <asm-generic/huge_mm.h>
+#include <asm-generic/finegrained_thp.h>
+#endif
 
 #include "pgalloc-track.h"
 #include "internal.h"