asm/huge_mm.h and asm/finegrained_thp.h are only used for
FINEGRAINED_THP-enabled kernel. Otherwise, such as arm which does
not support contiguous PTE bit, disallow including them.
Fixes:
7d5372737d34 ("mm: THP: introducing a fine-grained transparent hugepage technique for ARM64 architecture")
Change-Id: I37c2bc46106711f4b7ee33a6838d87e929e13247
Signed-off-by: Sung-hun Kim <sfoon.kim@samsung.com>
#include <asm/tlb.h>
#include <asm/pgalloc.h>
#include <asm/tlb.h>
#include <asm/pgalloc.h>
+#ifdef CONFIG_FINEGRAINED_THP
#include <asm/finegrained_thp.h>
#include <asm/huge_mm.h>
#include <asm/finegrained_thp.h>
#include <asm/huge_mm.h>
#include "internal.h"
enum scan_result {
#include "internal.h"
enum scan_result {
#include <linux/uaccess.h>
#include <asm/tlb.h>
#include <asm/tlbflush.h>
#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>
#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"
#include "pgalloc-track.h"
#include "internal.h"
#include <asm/cacheflush.h>
#include <asm/tlb.h>
#include <asm/mmu_context.h>
#include <asm/cacheflush.h>
#include <asm/tlb.h>
#include <asm/mmu_context.h>
+#ifdef CONFIG_FINEGRAINED_THP
#include <asm/finegrained_thp.h>
#include <asm/finegrained_thp.h>
+#else
+#include <asm-generic/finegrained_thp.h>
+#endif
#define CREATE_TRACE_POINTS
#include <trace/events/mmap.h>
#define CREATE_TRACE_POINTS
#include <trace/events/mmap.h>