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)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 7 May 2020 07:25:54 +0000 (17:25 +1000)
commit4833ce06e6855d526234618b746ffb71d6612c9a
tree83d411bf3b9678a61da6ff57bc8d74e9fcba6816
parentfa4f3f56ccd28ac031ab275e673ed4098855fed4
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: 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
arch/powerpc/include/asm/book3s/32/kup.h