Commit c3efef68 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by David S. Miller

[NET]: Remove dead socket layer exports.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f380f123
...@@ -176,7 +176,6 @@ struct kvec; ...@@ -176,7 +176,6 @@ struct kvec;
extern int sock_wake_async(struct socket *sk, int how, int band); extern int sock_wake_async(struct socket *sk, int how, int band);
extern int sock_register(struct net_proto_family *fam); extern int sock_register(struct net_proto_family *fam);
extern int sock_unregister(int family); extern int sock_unregister(int family);
extern struct socket *sock_alloc(void);
extern int sock_create(int family, int type, int proto, extern int sock_create(int family, int type, int proto,
struct socket **res); struct socket **res);
extern int sock_create_kern(int family, int type, int proto, extern int sock_create_kern(int family, int type, int proto,
......
...@@ -746,7 +746,6 @@ extern void sk_send_sigurg(struct sock *sk); ...@@ -746,7 +746,6 @@ extern void sk_send_sigurg(struct sock *sk);
* Functions to fill in entries in struct proto_ops when a protocol * Functions to fill in entries in struct proto_ops when a protocol
* does not implement a particular function. * does not implement a particular function.
*/ */
extern int sock_no_release(struct socket *);
extern int sock_no_bind(struct socket *, extern int sock_no_bind(struct socket *,
struct sockaddr *, int); struct sockaddr *, int);
extern int sock_no_connect(struct socket *, extern int sock_no_connect(struct socket *,
...@@ -1275,7 +1274,6 @@ static inline void sk_eat_skb(struct sock *sk, struct sk_buff *skb) ...@@ -1275,7 +1274,6 @@ static inline void sk_eat_skb(struct sock *sk, struct sk_buff *skb)
extern atomic_t netstamp_needed; extern atomic_t netstamp_needed;
extern void sock_enable_timestamp(struct sock *sk); extern void sock_enable_timestamp(struct sock *sk);
extern void sock_disable_timestamp(struct sock *sk);
static inline void net_timestamp(struct timeval *stamp) static inline void net_timestamp(struct timeval *stamp)
{ {
......
...@@ -175,6 +175,15 @@ static void sock_warn_obsolete_bsdism(const char *name) ...@@ -175,6 +175,15 @@ static void sock_warn_obsolete_bsdism(const char *name)
} }
} }
static void sock_disable_timestamp(struct sock *sk)
{
if (sock_flag(sk, SOCK_TIMESTAMP)) {
sock_reset_flag(sk, SOCK_TIMESTAMP);
atomic_dec(&netstamp_needed);
}
}
/* /*
* This is meant for all protocols to use and covers goings on * This is meant for all protocols to use and covers goings on
* at the socket level. Everything here is generic. * at the socket level. Everything here is generic.
...@@ -972,11 +981,6 @@ EXPORT_SYMBOL(sk_wait_data); ...@@ -972,11 +981,6 @@ EXPORT_SYMBOL(sk_wait_data);
* function, some default processing is provided. * function, some default processing is provided.
*/ */
int sock_no_release(struct socket *sock)
{
return 0;
}
int sock_no_bind(struct socket *sock, struct sockaddr *saddr, int len) int sock_no_bind(struct socket *sock, struct sockaddr *saddr, int len)
{ {
return -EOPNOTSUPP; return -EOPNOTSUPP;
...@@ -1247,15 +1251,6 @@ void sock_enable_timestamp(struct sock *sk) ...@@ -1247,15 +1251,6 @@ void sock_enable_timestamp(struct sock *sk)
} }
EXPORT_SYMBOL(sock_enable_timestamp); EXPORT_SYMBOL(sock_enable_timestamp);
void sock_disable_timestamp(struct sock *sk)
{
if (sock_flag(sk, SOCK_TIMESTAMP)) {
sock_reset_flag(sk, SOCK_TIMESTAMP);
atomic_dec(&netstamp_needed);
}
}
EXPORT_SYMBOL(sock_disable_timestamp);
/* /*
* Get a socket option on an socket. * Get a socket option on an socket.
* *
...@@ -1371,7 +1366,6 @@ EXPORT_SYMBOL(sk_free); ...@@ -1371,7 +1366,6 @@ EXPORT_SYMBOL(sk_free);
EXPORT_SYMBOL(sk_send_sigurg); EXPORT_SYMBOL(sk_send_sigurg);
EXPORT_SYMBOL(sock_alloc_send_pskb); EXPORT_SYMBOL(sock_alloc_send_pskb);
EXPORT_SYMBOL(sock_alloc_send_skb); EXPORT_SYMBOL(sock_alloc_send_skb);
EXPORT_SYMBOL(sock_getsockopt);
EXPORT_SYMBOL(sock_init_data); EXPORT_SYMBOL(sock_init_data);
EXPORT_SYMBOL(sock_kfree_s); EXPORT_SYMBOL(sock_kfree_s);
EXPORT_SYMBOL(sock_kmalloc); EXPORT_SYMBOL(sock_kmalloc);
...@@ -1385,14 +1379,12 @@ EXPORT_SYMBOL(sock_no_listen); ...@@ -1385,14 +1379,12 @@ EXPORT_SYMBOL(sock_no_listen);
EXPORT_SYMBOL(sock_no_mmap); EXPORT_SYMBOL(sock_no_mmap);
EXPORT_SYMBOL(sock_no_poll); EXPORT_SYMBOL(sock_no_poll);
EXPORT_SYMBOL(sock_no_recvmsg); EXPORT_SYMBOL(sock_no_recvmsg);
EXPORT_SYMBOL(sock_no_release);
EXPORT_SYMBOL(sock_no_sendmsg); EXPORT_SYMBOL(sock_no_sendmsg);
EXPORT_SYMBOL(sock_no_sendpage); EXPORT_SYMBOL(sock_no_sendpage);
EXPORT_SYMBOL(sock_no_setsockopt); EXPORT_SYMBOL(sock_no_setsockopt);
EXPORT_SYMBOL(sock_no_shutdown); EXPORT_SYMBOL(sock_no_shutdown);
EXPORT_SYMBOL(sock_no_socketpair); EXPORT_SYMBOL(sock_no_socketpair);
EXPORT_SYMBOL(sock_rfree); EXPORT_SYMBOL(sock_rfree);
EXPORT_SYMBOL(sock_rmalloc);
EXPORT_SYMBOL(sock_setsockopt); EXPORT_SYMBOL(sock_setsockopt);
EXPORT_SYMBOL(sock_wfree); EXPORT_SYMBOL(sock_wfree);
EXPORT_SYMBOL(sock_wmalloc); EXPORT_SYMBOL(sock_wmalloc);
......
...@@ -459,7 +459,7 @@ struct socket *sockfd_lookup(int fd, int *err) ...@@ -459,7 +459,7 @@ struct socket *sockfd_lookup(int fd, int *err)
* NULL is returned. * NULL is returned.
*/ */
struct socket *sock_alloc(void) static struct socket *sock_alloc(void)
{ {
struct inode * inode; struct inode * inode;
struct socket * sock; struct socket * sock;
...@@ -2089,8 +2089,6 @@ void socket_seq_show(struct seq_file *seq) ...@@ -2089,8 +2089,6 @@ void socket_seq_show(struct seq_file *seq)
/* ABI emulation layers need these two */ /* ABI emulation layers need these two */
EXPORT_SYMBOL(move_addr_to_kernel); EXPORT_SYMBOL(move_addr_to_kernel);
EXPORT_SYMBOL(move_addr_to_user); EXPORT_SYMBOL(move_addr_to_user);
EXPORT_SYMBOL(sock_alloc);
EXPORT_SYMBOL(sock_alloc_inode);
EXPORT_SYMBOL(sock_create); EXPORT_SYMBOL(sock_create);
EXPORT_SYMBOL(sock_create_kern); EXPORT_SYMBOL(sock_create_kern);
EXPORT_SYMBOL(sock_create_lite); EXPORT_SYMBOL(sock_create_lite);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment