uaccess: fix type mismatch warnings from access_ok()
authorArnd Bergmann <arnd@arndb.de>
Mon, 14 Feb 2022 19:22:10 +0000 (20:22 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 12:24:01 +0000 (14:24 +0200)
commit8b2a6074b981488ceeabf5ef7b5f873340e75118
tree54e28400536f73c9f5485fdbb126db186c46be9e
parentcb5bd93ad2183e26a447de5a560bef2a810a7ff4
uaccess: fix type mismatch warnings from access_ok()

[ Upstream commit 23fc539e81295b14b50c6ccc5baeb4f3d59d822d ]

On some architectures, access_ok() does not do any argument type
checking, so replacing the definition with a generic one causes
a few warnings for harmless issues that were never caught before.

Fix the ones that I found either through my own test builds or
that were reported by the 0-day bot.

Reported-by: kernel test robot <lkp@intel.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Acked-by: Dinh Nguyen <dinguyen@kernel.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arc/kernel/process.c
arch/arm/kernel/swp_emulate.c
arch/arm/kernel/traps.c
arch/csky/kernel/perf_callchain.c
arch/csky/kernel/signal.c
arch/nios2/kernel/signal.c
arch/powerpc/lib/sstep.c
arch/riscv/kernel/perf_callchain.c
arch/sparc/kernel/signal_32.c
lib/test_lockup.c