aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2012-06-27 00:51:35 -0400
committerDavid S. Miller <davem@davemloft.net>2012-06-27 00:54:15 -0400
commitc3deafc5261a9421b315ee0d0e8e36ba7857128c (patch)
tree8ee19535ef2264f523763b2adc51d8a0622ac385
parent02ef22ca4044fe90867f77cba720e4a442122826 (diff)
netlink: Delete NLMSG_PUT and NLMSG_NEW.
No longer used and a poor interface as they were macros with embedded gotos. Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--include/linux/netlink.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/include/linux/netlink.h b/include/linux/netlink.h
index 0f628ffa420c..ed33f0901bc2 100644
--- a/include/linux/netlink.h
+++ b/include/linux/netlink.h
@@ -241,14 +241,6 @@ struct netlink_notify {
241struct nlmsghdr * 241struct nlmsghdr *
242__nlmsg_put(struct sk_buff *skb, u32 pid, u32 seq, int type, int len, int flags); 242__nlmsg_put(struct sk_buff *skb, u32 pid, u32 seq, int type, int len, int flags);
243 243
244#define NLMSG_NEW(skb, pid, seq, type, len, flags) \
245({ if (unlikely(skb_tailroom(skb) < (int)NLMSG_SPACE(len))) \
246 goto nlmsg_failure; \
247 __nlmsg_put(skb, pid, seq, type, len, flags); })
248
249#define NLMSG_PUT(skb, pid, seq, type, len) \
250 NLMSG_NEW(skb, pid, seq, type, len, 0)
251
252struct netlink_dump_control { 244struct netlink_dump_control {
253 int (*dump)(struct sk_buff *skb, struct netlink_callback *); 245 int (*dump)(struct sk_buff *skb, struct netlink_callback *);
254 int (*done)(struct netlink_callback*); 246 int (*done)(struct netlink_callback*);