powerpc/32s: Fix build failure with CONFIG_PPC_KUAP_DEBUG
authorChristophe Leroy <christophe.leroy@c-s.fr>
Mon, 20 Apr 2020 07:47:05 +0000 (07:47 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 May 2020 06:20:33 +0000 (08:20 +0200)
commit4e06196336a18263fe3b25bc9627cf9437d16acf
tree7765ba7d8ebedda5ab437d79fb9b40c5aa689f6d
parent57aa19acfc220af0b7888996a3313795c37ecdac
powerpc/32s: Fix build failure with CONFIG_PPC_KUAP_DEBUG

commit 4833ce06e6855d526234618b746ffb71d6612c9a upstream.

gpr2 is not a parametre of kuap_check(), it doesn't exist.

Use gpr instead.

Fixes: a68c31fc01ef ("powerpc/32s: Implement Kernel Userspace Access Protection")
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/ea599546f2a7771bde551393889e44e6b2632332.1587368807.git.christophe.leroy@c-s.fr
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/include/asm/book3s/32/kup.h