net: pass a sockptr_t into ->setsockopt
authorChristoph Hellwig <hch@lst.de>
Thu, 23 Jul 2020 06:09:07 +0000 (08:09 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Jul 2020 22:41:54 +0000 (15:41 -0700)
commita7b75c5a8c41445f33efb663887ff5f5c3b4454b
treea87e011ba3a0d76fda030b3a62080caa97fae1ef
parentd38d2b00ba64b3f2f30d70a7929000606d2c4509
net: pass a sockptr_t into ->setsockopt

Rework the remaining setsockopt code to pass a sockptr_t instead of a
plain user pointer.  This removes the last remaining set_fs(KERNEL_DS)
outside of architecture specific code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Stefan Schmidt <stefan@datenfreihafen.org> [ieee802154]
Acked-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
61 files changed:
crypto/af_alg.c
drivers/crypto/chelsio/chtls/chtls_main.c
drivers/isdn/mISDN/socket.c
include/linux/net.h
include/net/inet_connection_sock.h
include/net/ip.h
include/net/ipv6.h
include/net/sctp/structs.h
include/net/sock.h
include/net/tcp.h
net/atm/common.c
net/atm/common.h
net/atm/pvc.c
net/atm/svc.c
net/ax25/af_ax25.c
net/bluetooth/hci_sock.c
net/bluetooth/l2cap_sock.c
net/bluetooth/rfcomm/sock.c
net/bluetooth/sco.c
net/caif/caif_socket.c
net/can/j1939/socket.c
net/can/raw.c
net/core/sock.c
net/dccp/dccp.h
net/dccp/proto.c
net/decnet/af_decnet.c
net/ieee802154/socket.c
net/ipv4/ip_sockglue.c
net/ipv4/raw.c
net/ipv4/tcp.c
net/ipv4/udp.c
net/ipv4/udp_impl.h
net/ipv6/ipv6_sockglue.c
net/ipv6/raw.c
net/ipv6/udp.c
net/ipv6/udp_impl.h
net/iucv/af_iucv.c
net/kcm/kcmsock.c
net/l2tp/l2tp_ppp.c
net/llc/af_llc.c
net/mptcp/protocol.c
net/netlink/af_netlink.c
net/netrom/af_netrom.c
net/nfc/llcp_sock.c
net/packet/af_packet.c
net/phonet/pep.c
net/rds/af_rds.c
net/rds/rdma.c
net/rds/rds.h
net/rose/af_rose.c
net/rxrpc/af_rxrpc.c
net/rxrpc/ar-internal.h
net/rxrpc/key.c
net/sctp/socket.c
net/smc/af_smc.c
net/socket.c
net/tipc/socket.c
net/tls/tls_main.c
net/vmw_vsock/af_vsock.c
net/x25/af_x25.c
net/xdp/xsk.c