Revision fff1662cc423be00c5a7dffc6cf2332161c882d6 authored by Tobias Klauser on 04 September 2020, 23:35:46 UTC, committed by Linus Torvalds on 05 September 2020, 19:14:29 UTC
Commit 32927393dc1c ("sysctl: pass kernel pointers to ->proc_handler")
changed ctl_table.proc_handler to take a kernel pointer.  Adjust the
signature of proc_ipc_sem_dointvec to match ctl_table.proc_handler which
fixes the following sparse error/warning:

  ipc/ipc_sysctl.c:94:47: warning: incorrect type in argument 3 (different address spaces)
  ipc/ipc_sysctl.c:94:47:    expected void *buffer
  ipc/ipc_sysctl.c:94:47:    got void [noderef] __user *buffer
  ipc/ipc_sysctl.c:194:35: warning: incorrect type in initializer (incompatible argument 3 (different address spaces))
  ipc/ipc_sysctl.c:194:35:    expected int ( [usertype] *proc_handler )( ... )
  ipc/ipc_sysctl.c:194:35:    got int ( * )( ... )

Fixes: 32927393dc1c ("sysctl: pass kernel pointers to ->proc_handler")
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Link: https://lkml.kernel.org/r/20200825105846.5193-1-tklauser@distanz.ch
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent e80d390
History
File Mode Size
Kconfig -rw-r--r-- 4.0 KB
Makefile -rw-r--r-- 689 bytes
acl.c -rw-r--r-- 6.6 KB
acl.h -rw-r--r-- 1.5 KB
balloc.c -rw-r--r-- 26.4 KB
bitmap.c -rw-r--r-- 2.7 KB
block_validity.c -rw-r--r-- 9.4 KB
dir.c -rw-r--r-- 19.0 KB
ext4.h -rw-r--r-- 122.8 KB
ext4_extents.h -rw-r--r-- 8.4 KB
ext4_jbd2.c -rw-r--r-- 10.2 KB
ext4_jbd2.h -rw-r--r-- 17.2 KB
extents.c -rw-r--r-- 157.0 KB
extents_status.c -rw-r--r-- 59.7 KB
extents_status.h -rw-r--r-- 8.0 KB
file.c -rw-r--r-- 22.8 KB
fsmap.c -rw-r--r-- 19.7 KB
fsmap.h -rw-r--r-- 2.0 KB
fsync.c -rw-r--r-- 5.2 KB
hash.c -rw-r--r-- 6.8 KB
ialloc.c -rw-r--r-- 40.2 KB
indirect.c -rw-r--r-- 42.6 KB
inline.c -rw-r--r-- 48.2 KB
inode-test.c -rw-r--r-- 7.3 KB
inode.c -rw-r--r-- 174.3 KB
ioctl.c -rw-r--r-- 34.1 KB
mballoc.c -rw-r--r-- 157.9 KB
mballoc.h -rw-r--r-- 5.4 KB
migrate.c -rw-r--r-- 16.8 KB
mmp.c -rw-r--r-- 10.1 KB
move_extent.c -rw-r--r-- 20.8 KB
namei.c -rw-r--r-- 108.0 KB
page-io.c -rw-r--r-- 15.2 KB
readpage.c -rw-r--r-- 11.3 KB
resize.c -rw-r--r-- 60.1 KB
super.c -rw-r--r-- 182.6 KB
symlink.c -rw-r--r-- 1.7 KB
sysfs.c -rw-r--r-- 15.7 KB
truncate.h -rw-r--r-- 1.5 KB
verity.c -rw-r--r-- 10.2 KB
xattr.c -rw-r--r-- 81.7 KB
xattr.h -rw-r--r-- 7.2 KB
xattr_hurd.c -rw-r--r-- 1.3 KB
xattr_security.c -rw-r--r-- 1.6 KB
xattr_trusted.c -rw-r--r-- 1.2 KB
xattr_user.c -rw-r--r-- 1.2 KB

back to top