From ed3c453a0787ddc10c5ce6010bd6ac663c740b68 Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Thu, 20 Jan 2011 23:10:26 +0100 Subject: Un-inline functions which are not small enough --- kernel/ip_set_hash_net.c | 26 ++++---------------------- 1 file changed, 4 insertions(+), 22 deletions(-) (limited to 'kernel/ip_set_hash_net.c') diff --git a/kernel/ip_set_hash_net.c b/kernel/ip_set_hash_net.c index 175c621..bdaebb4 100644 --- a/kernel/ip_set_hash_net.c +++ b/kernel/ip_set_hash_net.c @@ -80,14 +80,6 @@ hash_net4_data_copy(struct hash_net4_elem *dst, dst->cidr = src->cidr; } -static inline void -hash_net4_data_swap(struct hash_net4_elem *dst, - struct hash_net4_elem *src) -{ - swap(dst->ip, src->ip); - swap(dst->cidr, src->cidr); -} - static inline void hash_net4_data_netmask(struct hash_net4_elem *elem, u8 cidr) { @@ -102,7 +94,7 @@ hash_net4_data_zero_out(struct hash_net4_elem *elem) elem->cidr = 0; } -static inline bool +static bool hash_net4_data_list(struct sk_buff *skb, const struct hash_net4_elem *data) { NLA_PUT_IPADDR4(skb, IPSET_ATTR_IP, data->ip); @@ -113,7 +105,7 @@ nla_put_failure: return 1; } -static inline bool +static bool hash_net4_data_tlist(struct sk_buff *skb, const struct hash_net4_elem *data) { const struct hash_net4_telem *tdata = @@ -256,16 +248,6 @@ hash_net6_data_copy(struct hash_net6_elem *dst, dst->cidr = src->cidr; } -static inline void -hash_net6_data_swap(struct hash_net6_elem *dst, struct hash_net6_elem *src) -{ - struct hash_net6_elem tmp; - - memcpy(&tmp, dst, sizeof(tmp)); - memcpy(dst, src, sizeof(tmp)); - memcpy(src, &tmp, sizeof(tmp)); -} - static inline void hash_net6_data_zero_out(struct hash_net6_elem *elem) { @@ -288,7 +270,7 @@ hash_net6_data_netmask(struct hash_net6_elem *elem, u8 cidr) elem->cidr = cidr; } -static inline bool +static bool hash_net6_data_list(struct sk_buff *skb, const struct hash_net6_elem *data) { NLA_PUT_IPADDR6(skb, IPSET_ATTR_IP, &data->ip); @@ -299,7 +281,7 @@ nla_put_failure: return 1; } -static inline bool +static bool hash_net6_data_tlist(struct sk_buff *skb, const struct hash_net6_elem *data) { const struct hash_net6_telem *e = -- cgit v1.2.3