Commit 3d420820 authored by Arjan van de Ven's avatar Arjan van de Ven Committed by David S. Miller

[NETLINK]: Kill netlink_post, no longer used

Signed-off-by: default avatarArjan van de Ven <arjan@infradead.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b8517017
......@@ -116,7 +116,6 @@ struct netlink_skb_parms
#define NETLINK_CREDS(skb) (&NETLINK_CB((skb)).creds)
extern int netlink_post(int unit, struct sk_buff *skb);
extern struct sock *netlink_kernel_create(int unit, void (*input)(struct sock *sk, int len));
extern void netlink_ack(struct sk_buff *in_skb, struct nlmsghdr *nlh, int err);
extern int netlink_unicast(struct sock *ssk, struct sk_buff *skb, __u32 pid, int nonblock);
......
......@@ -1202,37 +1202,6 @@ void netlink_ack(struct sk_buff *in_skb, struct nlmsghdr *nlh, int err)
}
#ifdef NL_EMULATE_DEV
static rwlock_t nl_emu_lock = RW_LOCK_UNLOCKED;
/*
* Backward compatibility.
*/
int netlink_post(int unit, struct sk_buff *skb)
{
struct socket *sock;
read_lock(&nl_emu_lock);
sock = netlink_kernel[unit];
if (sock) {
struct sock *sk = sock->sk;
memset(skb->cb, 0, sizeof(skb->cb));
sock_hold(sk);
read_unlock(&nl_emu_lock);
netlink_broadcast(sk, skb, 0, ~0, GFP_ATOMIC);
sock_put(sk);
return 0;
}
read_unlock(&nl_emu_lock);
return -EUNATCH;
}
#endif
#ifdef CONFIG_PROC_FS
struct nl_seq_iter {
int link;
......@@ -1497,6 +1466,3 @@ EXPORT_SYMBOL(netlink_set_nonroot);
EXPORT_SYMBOL(netlink_unicast);
EXPORT_SYMBOL(netlink_unregister_notifier);
#if defined(CONFIG_NETLINK_DEV) || defined(CONFIG_NETLINK_DEV_MODULE)
EXPORT_SYMBOL(netlink_post);
#endif
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