OSDN Git Service

net: remove compat_sock_common_{get,set}sockopt
authorChristoph Hellwig <hch@lst.de>
Fri, 17 Jul 2020 06:23:14 +0000 (08:23 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Jul 2020 01:16:40 +0000 (18:16 -0700)
commit8c918ffbbad49454ed26c53eb1b90bf98bb5e394
treecac191613d7fc8ea8636e04cbeea06c28a725115
parent4d295e54611509854a12c26f95a6f4430731d614
net: remove compat_sock_common_{get,set}sockopt

Add the compat handling to sock_common_{get,set}sockopt instead,
keyed of in_compat_syscall().  This allow to remove the now unused
->compat_{get,set}sockopt methods from struct proto_ops.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Acked-by: Stefan Schmidt <stefan@datenfreihafen.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
16 files changed:
include/linux/net.h
include/net/sock.h
net/core/sock.c
net/dccp/ipv4.c
net/dccp/ipv6.c
net/ieee802154/socket.c
net/ipv4/af_inet.c
net/ipv6/af_inet6.c
net/ipv6/ipv6_sockglue.c
net/ipv6/raw.c
net/l2tp/l2tp_ip.c
net/l2tp/l2tp_ip6.c
net/mptcp/protocol.c
net/phonet/socket.c
net/sctp/ipv6.c
net/sctp/protocol.c