Skip to content

Commit 94d3084

Browse files
chleroympe
authored andcommitted
powerpc/32s: Fix compile error with CONFIG_PPC_PTDUMP
This patch remove CONFIG_PPC_HTDUMP if not PPC_BOOK3S_64 to avoid below compile failure on BOOK3S_32: In file included from arch/powerpc/mm/dump_hashpagetable.c:27:0: ./arch/powerpc/include/asm/plpar_wrappers.h: In function 'get_cede_latency_hint': ./arch/powerpc/include/asm/plpar_wrappers.h:27:2: error: implicit declaration of function 'get_lppaca' [-Werror=implicit-function-declaration] ... arch/powerpc/mm/dump_hashpagetable.c: At top level: arch/powerpc/mm/dump_hashpagetable.c:69:13: error: 'SLB_VSID_B' undeclared here (not in a function) ... arch/powerpc/mm/dump_hashpagetable.c:506:38: error: 'VMEMMAP_BASE' undeclared (first use in this function) arch/powerpc/mm/dump_hashpagetable.c:506:35: error: assignment makes integer from pointer without a cast [-Werror] Fixes: dd5ac03 ("powerpc/mm: Fix page table dump build on non-Book3S") Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> [mpe: Trim change log] Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
1 parent 0c38ed6 commit 94d3084

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/powerpc/Kconfig.debug‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ config PPC_PTDUMP
368368

369369
config PPC_HTDUMP
370370
def_bool y
371-
depends on PPC_PTDUMP && PPC_BOOK3S
371+
depends on PPC_PTDUMP && PPC_BOOK3S_64
372372

373373
config PPC_FAST_ENDIAN_SWITCH
374374
bool "Deprecated fast endian-switch syscall"

0 commit comments

Comments
 (0)