aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Dichtel <nicolas.dichtel@6wind.com>2016-05-13 09:25:40 -0400
committerDavid S. Miller <davem@davemloft.net>2016-05-16 13:46:23 -0400
commit5022524308c64f2954ac206a8781b64a98cddf00 (patch)
treed2e7513e494ee0aa1c0dd22ae41812feaccad2bf
parent2632616bc484de9281bc2a1f5b033325783f8a10 (diff)
netlink: kill nla_put_u64()
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>
-rw-r--r--include/net/netlink.h14
1 files changed, 2 insertions, 12 deletions
diff --git a/include/net/netlink.h b/include/net/netlink.h
index e589cb3dccee..254a0fc01800 100644
--- a/include/net/netlink.h
+++ b/include/net/netlink.h
@@ -98,7 +98,8 @@
98 * nla_put_u8(skb, type, value) add u8 attribute to skb 98 * nla_put_u8(skb, type, value) add u8 attribute to skb
99 * nla_put_u16(skb, type, value) add u16 attribute to skb 99 * nla_put_u16(skb, type, value) add u16 attribute to skb
100 * nla_put_u32(skb, type, value) add u32 attribute to skb 100 * nla_put_u32(skb, type, value) add u32 attribute to skb
101 * nla_put_u64(skb, type, value) add u64 attribute to skb 101 * nla_put_u64_64bits(skb, type,
102 * value, padattr) add u64 attribute to skb
102 * nla_put_s8(skb, type, value) add s8 attribute to skb 103 * nla_put_s8(skb, type, value) add s8 attribute to skb
103 * nla_put_s16(skb, type, value) add s16 attribute to skb 104 * nla_put_s16(skb, type, value) add s16 attribute to skb
104 * nla_put_s32(skb, type, value) add s32 attribute to skb 105 * nla_put_s32(skb, type, value) add s32 attribute to skb
@@ -847,17 +848,6 @@ static inline int nla_put_le32(struct sk_buff *skb, int attrtype, __le32 value)
847} 848}
848 849
849/** 850/**
850 * nla_put_u64 - Add a u64 netlink attribute to a socket buffer
851 * @skb: socket buffer to add attribute to
852 * @attrtype: attribute type
853 * @value: numeric value
854 */
855static inline int nla_put_u64(struct sk_buff *skb, int attrtype, u64 value)
856{
857 return nla_put(skb, attrtype, sizeof(u64), &value);
858}
859
860/**
861 * nla_put_u64_64bit - Add a u64 netlink attribute to a skb and align it 851 * nla_put_u64_64bit - Add a u64 netlink attribute to a skb and align it
862 * @skb: socket buffer to add attribute to 852 * @skb: socket buffer to add attribute to
863 * @attrtype: attribute type 853 * @attrtype: attribute type