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_ipport.c | 28 ++++------------------------ 1 file changed, 4 insertions(+), 24 deletions(-) (limited to 'kernel/ip_set_hash_ipport.c') diff --git a/kernel/ip_set_hash_ipport.c b/kernel/ip_set_hash_ipport.c index 415639d..37e664a 100644 --- a/kernel/ip_set_hash_ipport.c +++ b/kernel/ip_set_hash_ipport.c @@ -85,22 +85,13 @@ hash_ipport4_data_copy(struct hash_ipport4_elem *dst, dst->proto = src->proto; } -static inline void -hash_ipport4_data_swap(struct hash_ipport4_elem *dst, - struct hash_ipport4_elem *src) -{ - swap(dst->ip, src->ip); - swap(dst->port, src->port); - swap(dst->proto, src->proto); -} - static inline void hash_ipport4_data_zero_out(struct hash_ipport4_elem *elem) { elem->proto = 0; } -static inline bool +static bool hash_ipport4_data_list(struct sk_buff *skb, const struct hash_ipport4_elem *data) { @@ -113,7 +104,7 @@ nla_put_failure: return 1; } -static inline bool +static bool hash_ipport4_data_tlist(struct sk_buff *skb, const struct hash_ipport4_elem *data) { @@ -320,24 +311,13 @@ hash_ipport6_data_copy(struct hash_ipport6_elem *dst, memcpy(dst, src, sizeof(*dst)); } -static inline void -hash_ipport6_data_swap(struct hash_ipport6_elem *dst, - struct hash_ipport6_elem *src) -{ - struct hash_ipport6_elem tmp; - - memcpy(&tmp, dst, sizeof(tmp)); - memcpy(dst, src, sizeof(tmp)); - memcpy(src, &tmp, sizeof(tmp)); -} - static inline void hash_ipport6_data_zero_out(struct hash_ipport6_elem *elem) { elem->proto = 0; } -static inline bool +static bool hash_ipport6_data_list(struct sk_buff *skb, const struct hash_ipport6_elem *data) { @@ -350,7 +330,7 @@ nla_put_failure: return 1; } -static inline bool +static bool hash_ipport6_data_tlist(struct sk_buff *skb, const struct hash_ipport6_elem *data) { -- cgit v1.2.3