]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm: Fix build break with RADIX=y & HUGETLBFS=n
authorMichael Ellerman <mpe@ellerman.id.au>
Tue, 14 Feb 2017 02:11:38 +0000 (13:11 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 14 Feb 2017 05:54:21 +0000 (16:54 +1100)
commit37e2f2abc8a071ded9a8e15a1fbd244a8a993b99
tree0c035281fa281f2a773998193bdc816ca7cab566
parent789ad1dac5946893e4e4329726e3835e751c5725
powerpc/mm: Fix build break with RADIX=y & HUGETLBFS=n

If we enable RADIX but disable HUGETLBFS, the build breaks with:

  arch/powerpc/mm/pgtable-radix.c:557:7: error: implicit declaration of function 'pmd_huge'
  arch/powerpc/mm/pgtable-radix.c:588:7: error: implicit declaration of function 'pud_huge'

Fix it by stubbing those functions when HUGETLBFS=n.

Fixes: 5afd8d638148 ("powerpc/mm: add radix__remove_section_mapping()")
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/book3s/64/pgtable-4k.h
arch/powerpc/include/asm/book3s/64/pgtable-64k.h