lift compat definitions of mcast [sg]etsockopt requests into net/compat.h
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 10 May 2020 00:58:17 +0000 (20:58 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 21 May 2020 00:31:25 +0000 (20:31 -0400)
commit63287de66df11308d239483415d67fe94079f47b
tree7d6926f0d0659978eb6b6912419bad48857fa82c
parentf78cdbd75a57245ecc68f5a40e470933426a082b
lift compat definitions of mcast [sg]etsockopt requests into net/compat.h

We want to get rid of compat_mc_[sg]etsockopt() and to have that stuff
handled without compat_alloc_user_space(), extra copying through
userland, etc.  To do that we'll need ipv4 and ipv6 instances of
->compat_[sg]etsockopt() to manipulate the 32bit variants of mcast
requests, so we need to move the definitions of those out of net/compat.c
and into a public header.

This patch just does a mechanical move to include/net/compat.h

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
include/net/compat.h
net/compat.c