powerpc/32s: Fix another build failure with CONFIG_PPC_KUAP_DEBUG
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Sat, 30 May 2020 17:16:33 +0000 (17:16 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 2 Jun 2020 10:59:16 +0000 (20:59 +1000)
commit74016701fe5f873ae23bf02835407227138d874d
tree0c5e5a6ed7c96c0eb299efa5f0d81e5f85d3bed9
parentbd55e792de0844631d34487d43eaf3f13294ebfe
powerpc/32s: Fix another build failure with CONFIG_PPC_KUAP_DEBUG

'thread' doesn't exist in kuap_check() macro.

Use 'current' instead.

Fixes: a68c31fc01ef ("powerpc/32s: Implement Kernel Userspace Access Protection")
Cc: stable@vger.kernel.org
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/b459e1600b969047a74e34251a84a3d6fdf1f312.1590858925.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/book3s/32/kup.h