Skip to content

Commit 4833ce0

Browse files
chleroympe
authored andcommitted
powerpc/32s: Fix build failure with CONFIG_PPC_KUAP_DEBUG
gpr2 is not a parametre of kuap_check(), it doesn't exist. Use gpr instead. Fixes: a68c31f ("powerpc/32s: Implement Kernel Userspace Access Protection") Signed-off-by: Christophe Leroy <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/ea599546f2a7771bde551393889e44e6b2632332.1587368807.git.christophe.leroy@c-s.fr
1 parent fa4f3f5 commit 4833ce0

File tree

1 file changed

+1
-1
lines changed
  • arch/powerpc/include/asm/book3s/32

1 file changed

+1
-1
lines changed

arch/powerpc/include/asm/book3s/32/kup.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575

7676
.macro kuap_check current, gpr
7777
#ifdef CONFIG_PPC_KUAP_DEBUG
78-
lwz \gpr2, KUAP(thread)
78+
lwz \gpr, KUAP(thread)
7979
999: twnei \gpr, 0
8080
EMIT_BUG_ENTRY 999b, __FILE__, __LINE__, (BUGFLAG_WARNING | BUGFLAG_ONCE)
8181
#endif

0 commit comments

Comments
 (0)