From: Christophe Leroy Date: Thu, 25 Apr 2019 14:29:32 +0000 (+0000) Subject: powerpc/mm: remove unnecessary #ifdef CONFIG_PPC64 X-Git-Tag: v5.15~6398^2~118 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b4baad0b2712471740c58a1bc9578ab057af7514;p=platform%2Fkernel%2Flinux-starfive.git powerpc/mm: remove unnecessary #ifdef CONFIG_PPC64 For PPC32 that's a noop, gcc should be smart enough to ignore it. Signed-off-by: Christophe Leroy Signed-off-by: Michael Ellerman --- diff --git a/arch/powerpc/mm/slice.c b/arch/powerpc/mm/slice.c index 31de91b..840c411 100644 --- a/arch/powerpc/mm/slice.c +++ b/arch/powerpc/mm/slice.c @@ -118,13 +118,11 @@ static int slice_high_has_vma(struct mm_struct *mm, unsigned long slice) unsigned long start = slice << SLICE_HIGH_SHIFT; unsigned long end = start + (1ul << SLICE_HIGH_SHIFT); -#ifdef CONFIG_PPC64 /* Hack, so that each addresses is controlled by exactly one * of the high or low area bitmaps, the first high area starts * at 4GB, not 0 */ if (start == 0) - start = SLICE_LOW_TOP; -#endif + start = (unsigned long)SLICE_LOW_TOP; return !slice_area_is_free(mm, start, end - start); }