]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sh: fix trivial misannotations
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 31 Dec 2020 23:23:01 +0000 (23:23 +0000)
committerRich Felker <dalias@libc.org>
Tue, 23 Feb 2021 22:06:41 +0000 (17:06 -0500)
commitb1deeeb93933d39098cf9b192ae0ac347e9bbd02
tree65bf53afdfc8d9bb7f2cd21f1ddf2398dea4051b
parentf40ddce88593482919761f74910f42f4b84c004b
sh: fix trivial misannotations

Trivial misannotations in
* get_user() (__gu_addr is a userland pointer there)
* ip_fast_csum() (sum is __wsum, not unsigned int)
* csum_and_copy_to_user() (destination is void *, not const void * -
mea culpa)
* __clear_user() (to is a userland pointer)
* several places in kernel/traps_32.c (regs->pc is a userland pointer
when regs is a userland pt_regs)
* math-emu/math.c: READ() and WRITE() casts of address should be to
userland pointer.

No changes in code generation and those take care of the majority of
noise from sparse on sh builds.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Tested-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Signed-off-by: Rich Felker <dalias@libc.org>
arch/sh/include/asm/checksum_32.h
arch/sh/include/asm/uaccess.h
arch/sh/kernel/traps_32.c
arch/sh/math-emu/math.c
arch/sh/mm/nommu.c