Skip to content

Commit

Permalink
netlink: kill nla_put_u64()
Browse files Browse the repository at this point in the history
This function is not used anymore. nla_put_u64_64bit() should be used
instead.

Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Nicolas Dichtel authored and David S. Miller committed May 16, 2016
1 parent 2632616 commit 5022524
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions include/net/netlink.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@
* nla_put_u8(skb, type, value) add u8 attribute to skb
* nla_put_u16(skb, type, value) add u16 attribute to skb
* nla_put_u32(skb, type, value) add u32 attribute to skb
* nla_put_u64(skb, type, value) add u64 attribute to skb
* nla_put_u64_64bits(skb, type,
* value, padattr) add u64 attribute to skb
* nla_put_s8(skb, type, value) add s8 attribute to skb
* nla_put_s16(skb, type, value) add s16 attribute to skb
* nla_put_s32(skb, type, value) add s32 attribute to skb
Expand Down Expand Up @@ -846,17 +847,6 @@ static inline int nla_put_le32(struct sk_buff *skb, int attrtype, __le32 value)
return nla_put(skb, attrtype, sizeof(__le32), &value);
}

/**
* nla_put_u64 - Add a u64 netlink attribute to a socket buffer
* @skb: socket buffer to add attribute to
* @attrtype: attribute type
* @value: numeric value
*/
static inline int nla_put_u64(struct sk_buff *skb, int attrtype, u64 value)
{
return nla_put(skb, attrtype, sizeof(u64), &value);
}

/**
* nla_put_u64_64bit - Add a u64 netlink attribute to a skb and align it
* @skb: socket buffer to add attribute to
Expand Down

0 comments on commit 5022524

Please sign in to comment.