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
caif
device_drivers
devlink
dsa
mac80211_hwsim
6lowpan.rst -rw-r--r-- 1.5 KB
6pack.rst -rw-r--r-- 8.1 KB
af_xdp.rst -rw-r--r-- 22.9 KB
alias.rst -rw-r--r-- 1.2 KB
arcnet-hardware.rst -rw-r--r-- 107.0 KB
arcnet.rst -rw-r--r-- 23.1 KB
atm.rst -rw-r--r-- 476 bytes
ax25.rst -rw-r--r-- 662 bytes
bareudp.rst -rw-r--r-- 2.3 KB
batman-adv.rst -rw-r--r-- 5.6 KB
bonding.rst -rw-r--r-- 112.0 KB
bridge.rst -rw-r--r-- 638 bytes
can.rst -rw-r--r-- 55.3 KB
can_ucan_protocol.rst -rw-r--r-- 8.9 KB
cdc_mbim.rst -rw-r--r-- 12.3 KB
checksum-offloads.rst -rw-r--r-- 6.3 KB
dccp.rst -rw-r--r-- 9.6 KB
dctcp.rst -rw-r--r-- 1.7 KB
decnet.rst -rw-r--r-- 10.7 KB
dns_resolver.rst -rw-r--r-- 5.0 KB
driver.rst -rw-r--r-- 2.7 KB
eql.rst -rw-r--r-- 13.0 KB
ethtool-netlink.rst -rw-r--r-- 66.6 KB
failover.rst -rw-r--r-- 639 bytes
fib_trie.rst -rw-r--r-- 5.8 KB
filter.rst -rw-r--r-- 61.4 KB
framerelay.rst -rw-r--r-- 2.2 KB
gen_stats.rst -rw-r--r-- 3.9 KB
generic-hdlc.rst -rw-r--r-- 4.4 KB
generic_netlink.rst -rw-r--r-- 242 bytes
gtp.rst -rw-r--r-- 9.4 KB
ieee802154.rst -rw-r--r-- 6.9 KB
ila.rst -rw-r--r-- 11.7 KB
index.rst -rw-r--r-- 1.5 KB
ip-sysctl.rst -rw-r--r-- 88.8 KB
ip_dynaddr.rst -rw-r--r-- 1.3 KB
ipddp.rst -rw-r--r-- 3.3 KB
ipsec.rst -rw-r--r-- 1.9 KB
ipv6.rst -rw-r--r-- 1.8 KB
ipvlan.rst -rw-r--r-- 6.4 KB
ipvs-sysctl.rst -rw-r--r-- 10.7 KB
j1939.rst -rw-r--r-- 14.8 KB
kapi.rst -rw-r--r-- 2.9 KB
kcm.rst -rw-r--r-- 10.7 KB
l2tp.rst -rw-r--r-- 14.4 KB
lapb-module.rst -rw-r--r-- 11.1 KB
mac80211-auth-assoc-deauth.txt -rw-r--r-- 2.5 KB
mac80211-injection.rst -rw-r--r-- 3.5 KB
mpls-sysctl.rst -rw-r--r-- 1.6 KB
msg_zerocopy.rst -rw-r--r-- 8.6 KB
multiqueue.rst -rw-r--r-- 3.4 KB
net_dim.rst -rw-r--r-- 7.8 KB
net_failover.rst -rw-r--r-- 4.3 KB
netconsole.rst -rw-r--r-- 8.0 KB
netdev-FAQ.rst -rw-r--r-- 12.9 KB
netdev-features.rst -rw-r--r-- 6.9 KB
netdevices.rst -rw-r--r-- 3.9 KB
netfilter-sysctl.rst -rw-r--r-- 528 bytes
netif-msg.rst -rw-r--r-- 3.3 KB
nf_conntrack-sysctl.rst -rw-r--r-- 4.8 KB
nf_flowtable.rst -rw-r--r-- 5.4 KB
nfc.rst -rw-r--r-- 5.1 KB
openvswitch.rst -rw-r--r-- 11.5 KB
operstates.rst -rw-r--r-- 6.4 KB
packet_mmap.rst -rw-r--r-- 35.1 KB
page_pool.rst -rw-r--r-- 5.4 KB
phonet.rst -rw-r--r-- 7.2 KB
phy.rst -rw-r--r-- 22.0 KB
pktgen.rst -rw-r--r-- 12.0 KB
plip.rst -rw-r--r-- 8.2 KB
ppp_generic.rst -rw-r--r-- 20.6 KB
proc_net_tcp.rst -rw-r--r-- 2.8 KB
radiotap-headers.rst -rw-r--r-- 5.3 KB
rds.rst -rw-r--r-- 16.6 KB
regulatory.rst -rw-r--r-- 7.2 KB
rxrpc.rst -rw-r--r-- 45.8 KB
scaling.rst -rw-r--r-- 23.6 KB
sctp.rst -rw-r--r-- 1.4 KB
secid.rst -rw-r--r-- 749 bytes
seg6-sysctl.rst -rw-r--r-- 658 bytes
segmentation-offloads.rst -rw-r--r-- 7.7 KB
sfp-phylink.rst -rw-r--r-- 9.3 KB
snmp_counter.rst -rw-r--r-- 65.2 KB
strparser.rst -rw-r--r-- 8.5 KB
switchdev.rst -rw-r--r-- 16.0 KB
tc-actions-env-rules.rst -rw-r--r-- 1.0 KB
tcp-thin.rst -rw-r--r-- 2.3 KB
team.rst -rw-r--r-- 162 bytes
timestamping.rst -rw-r--r-- 33.9 KB
tls-offload-layers.svg -rw-r--r-- 49.0 KB
tls-offload-reorder-bad.svg -rw-r--r-- 6.4 KB
tls-offload-reorder-good.svg -rw-r--r-- 6.4 KB
tls-offload.rst -rw-r--r-- 22.5 KB
tls.rst -rw-r--r-- 7.6 KB
tproxy.rst -rw-r--r-- 3.8 KB
tuntap.rst -rw-r--r-- 8.1 KB
udplite.rst -rw-r--r-- 11.3 KB
vrf.rst -rw-r--r-- 15.6 KB
vxlan.rst -rw-r--r-- 2.1 KB
x25-iface.rst -rw-r--r-- 4.9 KB
x25.rst -rw-r--r-- 2.1 KB
xfrm_device.rst -rw-r--r-- 5.3 KB
xfrm_proc.rst -rw-r--r-- 2.1 KB
xfrm_sync.rst -rw-r--r-- 6.5 KB
xfrm_sysctl.rst -rw-r--r-- 238 bytes

back to top