]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm: Fix page table dump build on non-Book3S
authorMichael Ellerman <mpe@ellerman.id.au>
Wed, 30 Nov 2016 08:41:02 +0000 (19:41 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 1 Dec 2016 05:20:18 +0000 (16:20 +1100)
commitfa7c926e7087134080fa14e7ece364876f075300
tree142b164e3ed0ebc6aba7002e729b3c587c8e7ba2
parentef2e3e6685e55e497aa7d0ffcb803e4ab5b6ca3a
powerpc/mm: Fix page table dump build on non-Book3S

In the recent commit c200ee447bce ("powerpc/mm: Dump hash table") we
added code to dump the hage page table. Currently this can be selected
to build on any platform. However it breaks the build if we're building
for a non-Book3S platform, because none of the hash page table related
defines and so on exist. So restrict it to building only on Book3S.

Similarly in commit 0796cc493713 ("powerpc/mm: Dump linux pagetables")
we added code to dump the Linux page tables, which uses some constants
which are only defined on Book3S - so guard those with an #ifdef.

Fixes: c200ee447bce ("powerpc/mm: Dump hash table")
Fixes: 0796cc493713 ("powerpc/mm: Dump linux pagetables")
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/Kconfig.debug
arch/powerpc/mm/Makefile
arch/powerpc/mm/dump_linuxpagetables.c