powerpc/mm: move hugetlb_disabled into asm/hugetlb.h
authorChristophe Leroy <christophe.leroy@c-s.fr>
Fri, 26 Apr 2019 05:59:47 +0000 (05:59 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 2 May 2019 15:20:24 +0000 (01:20 +1000)
No need to have this in asm/page.h, move it into asm/hugetlb.h

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/hugetlb.h
arch/powerpc/include/asm/page.h
arch/powerpc/kernel/fadump.c
arch/powerpc/mm/book3s64/hash_utils.c

index fd5c0873a57d8f0018721de508f94a033227ed31..84598c6b09595e2e1118e5bd1625d032ce392e6a 100644 (file)
@@ -13,6 +13,8 @@
 #include <asm/nohash/32/hugetlb-8xx.h>
 #endif /* CONFIG_PPC_BOOK3S_64 */
 
+extern bool hugetlb_disabled;
+
 void flush_dcache_icache_hugepage(struct page *page);
 
 int slice_is_hugepage_only_range(struct mm_struct *mm, unsigned long addr,
index 748f5db2e2b7469a80994604f6049ff8b5b6e214..6b508420d92be6e6692aa214df4612de45e364a5 100644 (file)
@@ -29,7 +29,6 @@
 
 #ifndef __ASSEMBLY__
 #ifdef CONFIG_HUGETLB_PAGE
-extern bool hugetlb_disabled;
 extern unsigned int HPAGE_SHIFT;
 #else
 #define HPAGE_SHIFT PAGE_SHIFT
index 45a8d0be1c96daf89ebea7b3c5e10853ee619cb2..25f063f56ec5663c1780dbc3645e70410ccdf855 100644 (file)
@@ -36,6 +36,7 @@
 #include <linux/sysfs.h>
 #include <linux/slab.h>
 #include <linux/cma.h>
+#include <linux/hugetlb.h>
 
 #include <asm/debugfs.h>
 #include <asm/page.h>
index 23ed8db645adfea1cd2f2ad7a3a46c03f3d850a1..f0ce860a69ace64733f3f38e952dca8236b8e082 100644 (file)
@@ -37,6 +37,7 @@
 #include <linux/context_tracking.h>
 #include <linux/libfdt.h>
 #include <linux/pkeys.h>
+#include <linux/hugetlb.h>
 
 #include <asm/debugfs.h>
 #include <asm/processor.h>