linux/arch/powerpc/mm/ptdump
Christophe Leroy 65e701b2d2 powerpc/ptdump: drop non vital #ifdefs
hashpagetable.c is only compiled when CONFIG_PPC_BOOK3S_64 is
defined, so drop the test and its 'else' branch.

Use IS_ENABLED(CONFIG_PPC_PSERIES) instead of #ifdef, this allows the
code to be checked at any build. It is still optimised out by GCC.

Use IS_ENABLED(CONFIG_PPC_64K_PAGES) instead of #ifdef.

Use IS_ENABLED(CONFIG_SPARSEMEN_VMEMMAP) instead of #ifdef.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/c8998ed32e4e3954b56a8dacecfe43319a2a0483.1565786091.git.christophe.leroy@c-s.fr
2019-08-20 21:22:09 +10:00
..
8xx.c powerpc: Move page table dump files in a dedicated subdirectory 2019-02-22 22:29:22 +11:00
Makefile powerpc: Move page table dump files in a dedicated subdirectory 2019-02-22 22:29:22 +11:00
bats.c powerpc: Move page table dump files in a dedicated subdirectory 2019-02-22 22:29:22 +11:00
book3s64.c powerpc: Move page table dump files in a dedicated subdirectory 2019-02-22 22:29:22 +11:00
hashpagetable.c powerpc/ptdump: drop non vital #ifdefs 2019-08-20 21:22:09 +10:00
ptdump.c powerpc/ptdump: get out of note_prot_wx() when CONFIG_PPC_DEBUG_WX is not selected. 2019-08-20 21:22:09 +10:00
ptdump.h powerpc: Move page table dump files in a dedicated subdirectory 2019-02-22 22:29:22 +11:00
segment_regs.c powerpc: Move page table dump files in a dedicated subdirectory 2019-02-22 22:29:22 +11:00
shared.c powerpc: Move page table dump files in a dedicated subdirectory 2019-02-22 22:29:22 +11:00