]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm: Remove redundant #if case
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Tue, 21 Oct 2014 03:25:59 +0000 (14:25 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 22 Oct 2014 03:03:06 +0000 (14:03 +1100)
commit2aec67279292910426bd4074a0743431a6ac3bb3
treec1659af5020ce8efe58cf8fea58573a71ecf1c5b
parent973f7c390d6f50083d1106c7e9e7213b5846863b
powerpc/mm: Remove redundant #if case

Remove the check of CONFIG_PPC_SUBPAGE_PROT when deciding if
is_hugepage_only_range() is extern or inline. The extern version is in
slice.c and is built if CONFIG_PPC_MM_SLICES=y.

There was no build break possible because CONFIG_PPC_SUBPAGE_PROT is
only selectable under conditions which also mean CONFIG_PPC_MM_SLICES
will be selected.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/hugetlb.h