summaryrefslogtreecommitdiff
path: root/include/net/compat.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2020-03-30 05:08:59 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2020-05-21 03:31:27 +0300
commit0dfe6581a7e35bafe5fc4d9b84edd0e66b4fd78a (patch)
tree7690c0c6a8fb539ca0462408935d8beba1cf8417 /include/net/compat.h
parent931ca7ab7fe804d77bc6952f1512950c0d870f26 (diff)
downloadlinux-0dfe6581a7e35bafe5fc4d9b84edd0e66b4fd78a.tar.xz
get rid of compat_mc_getsockopt()
now we can do MCAST_MSFILTER in compat ->getsockopt() without playing silly buggers with copying things back and forth. We can form a native struct group_filter (sans the variable-length tail) on stack, pass that + pointer to the tail of original request to the helper doing the bulk of the work, then do the rest of copyout - same as the native getsockopt() does. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/net/compat.h')
-rw-r--r--include/net/compat.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/net/compat.h b/include/net/compat.h
index 69a8cd29c0ae..d714076d63d5 100644
--- a/include/net/compat.h
+++ b/include/net/compat.h
@@ -70,9 +70,6 @@ int cmsghdr_from_user_compat_to_kern(struct msghdr *, struct sock *,
int compat_mc_setsockopt(struct sock *, int, int, char __user *, unsigned int,
int (*)(struct sock *, int, int, char __user *,
unsigned int));
-int compat_mc_getsockopt(struct sock *, int, int, char __user *, int __user *,
- int (*)(struct sock *, int, int, char __user *,
- int __user *));
struct compat_group_req {
__u32 gr_interface;