From: Aneesh Kumar K.V Date: Tue, 10 Apr 2018 08:51:26 +0000 (+0530) Subject: powerpc/8xx: Fix build with hugetlbfs enabled X-Git-Tag: v5.15~9010^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=032900e62c176d75923baf95ad880e5d6ba71171;p=platform%2Fkernel%2Flinux-starfive.git powerpc/8xx: Fix build with hugetlbfs enabled 8xx uses the slice code when hugetlbfs is enabled. We missed a header include on 8xx which resulted in the below build failure: config: mpc885_ads_defconfig + CONFIG_HUGETLBFS arch/powerpc/mm/slice.c: In function 'slice_get_unmapped_area': arch/powerpc/mm/slice.c:655:2: error: implicit declaration of function 'need_extra_context' arch/powerpc/mm/slice.c:656:3: error: implicit declaration of function 'alloc_extended_context' on PPC64 the mmu_context.h was included via linux/pkeys.h Signed-off-by: Aneesh Kumar K.V Signed-off-by: Michael Ellerman --- diff --git a/arch/powerpc/mm/slice.c b/arch/powerpc/mm/slice.c index 9cd87d1..205fe55 100644 --- a/arch/powerpc/mm/slice.c +++ b/arch/powerpc/mm/slice.c @@ -35,6 +35,7 @@ #include #include #include +#include static DEFINE_SPINLOCK(slice_convert_lock);