mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-04 04:06:26 +00:00
net: CONFIG_COMPAT redux
Ifdef out struct proto_ops::compat_ioctl struct proto_ops::compat_setsockopt struct proto_ops::compat_getsockopt to make structures smaller on COMPAT=n kernels. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
bf66f3736a
commit
1621e09402
@ -174,18 +174,22 @@ struct proto_ops {
|
|||||||
struct poll_table_struct *wait);
|
struct poll_table_struct *wait);
|
||||||
int (*ioctl) (struct socket *sock, unsigned int cmd,
|
int (*ioctl) (struct socket *sock, unsigned int cmd,
|
||||||
unsigned long arg);
|
unsigned long arg);
|
||||||
|
#ifdef CONFIG_COMPAT
|
||||||
int (*compat_ioctl) (struct socket *sock, unsigned int cmd,
|
int (*compat_ioctl) (struct socket *sock, unsigned int cmd,
|
||||||
unsigned long arg);
|
unsigned long arg);
|
||||||
|
#endif
|
||||||
int (*listen) (struct socket *sock, int len);
|
int (*listen) (struct socket *sock, int len);
|
||||||
int (*shutdown) (struct socket *sock, int flags);
|
int (*shutdown) (struct socket *sock, int flags);
|
||||||
int (*setsockopt)(struct socket *sock, int level,
|
int (*setsockopt)(struct socket *sock, int level,
|
||||||
int optname, char __user *optval, unsigned int optlen);
|
int optname, char __user *optval, unsigned int optlen);
|
||||||
int (*getsockopt)(struct socket *sock, int level,
|
int (*getsockopt)(struct socket *sock, int level,
|
||||||
int optname, char __user *optval, int __user *optlen);
|
int optname, char __user *optval, int __user *optlen);
|
||||||
|
#ifdef CONFIG_COMPAT
|
||||||
int (*compat_setsockopt)(struct socket *sock, int level,
|
int (*compat_setsockopt)(struct socket *sock, int level,
|
||||||
int optname, char __user *optval, unsigned int optlen);
|
int optname, char __user *optval, unsigned int optlen);
|
||||||
int (*compat_getsockopt)(struct socket *sock, int level,
|
int (*compat_getsockopt)(struct socket *sock, int level,
|
||||||
int optname, char __user *optval, int __user *optlen);
|
int optname, char __user *optval, int __user *optlen);
|
||||||
|
#endif
|
||||||
int (*sendmsg) (struct kiocb *iocb, struct socket *sock,
|
int (*sendmsg) (struct kiocb *iocb, struct socket *sock,
|
||||||
struct msghdr *m, size_t total_len);
|
struct msghdr *m, size_t total_len);
|
||||||
int (*recvmsg) (struct kiocb *iocb, struct socket *sock,
|
int (*recvmsg) (struct kiocb *iocb, struct socket *sock,
|
||||||
|
Loading…
Reference in New Issue
Block a user