init/: remove ineffective sparse disabling
authorLuc Van Oostenryck <[email protected]>
Wed, 22 Aug 2018 04:58:30 +0000 (21:58 -0700)
committerLinus Torvalds <[email protected]>
Wed, 22 Aug 2018 17:52:49 +0000 (10:52 -0700)
commit6ad018e3ca9efd80a724e32c02ae7552fd0829f2
tree8f535fe0de06866ce19161a280b10aa138650589
parent992991c03ca033f779aae1afb5b0c27bcb7139c3
init/: remove ineffective sparse disabling

Sparse checking used to be disabled on init/do_mounts.c and a few related
files because "Many of the syscalls used in this file expect some of the
arguments to be __user pointers not __kernel pointers".

However since 28128c61e ("kconfig.h: Include compiler types to avoid
missed struct attributes") the checks are, in fact, not disabled anymore
because of the more early include of "linux/compiler_types.h"

So remove the now ineffective #undefery that was done to disable these
warnings, as well as the associated comment.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Luc Van Oostenryck <[email protected]>
Cc: Dominik Brodowski <[email protected]>
Cc: Al Viro <[email protected]>
Cc: Kees Cook <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
init/do_mounts.c
init/do_mounts_initrd.c
init/do_mounts_md.c
init/do_mounts_rd.c
init/initramfs.c