Skip to content

Commit a36ca73

Browse files
acmelDavid S. Miller
authored andcommitted
[NETLINK]: Remove NLMSG_{NEW_ANSWER,CANCEL,END}
Not used anywhere and defined inside __KERNEL__, Thomas acked this on irc. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 897933b commit a36ca73

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

‎include/linux/netlink.h‎

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -229,18 +229,6 @@ __nlmsg_put(struct sk_buff *skb, u32 pid, u32 seq, int type, int len, int flags)
229229
#define NLMSG_PUT(skb, pid, seq, type, len) \
230230
NLMSG_NEW(skb, pid, seq, type, len, 0)
231231

232-
#define NLMSG_NEW_ANSWER(skb, cb, type, len, flags) \
233-
NLMSG_NEW(skb, NETLINK_CB((cb)->skb).pid, \
234-
(cb)->nlh->nlmsg_seq, type, len, flags)
235-
236-
#define NLMSG_END(skb, nlh) \
237-
({ (nlh)->nlmsg_len = skb_tail_pointer(skb) - (unsigned char *)(nlh); \
238-
(skb)->len; })
239-
240-
#define NLMSG_CANCEL(skb, nlh) \
241-
({ skb_trim(skb, (unsigned char *) (nlh) - (skb)->data); \
242-
-1; })
243-
244232
extern int netlink_dump_start(struct sock *ssk, struct sk_buff *skb,
245233
struct nlmsghdr *nlh,
246234
int (*dump)(struct sk_buff *skb, struct netlink_callback*),

0 commit comments

Comments
 (0)