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_netport.c | 29 ++++------------------------- 1 file changed, 4 insertions(+), 25 deletions(-) (limited to 'kernel/ip_set_hash_netport.c') diff --git a/kernel/ip_set_hash_netport.c b/kernel/ip_set_hash_netport.c index b0251f3..39080f9 100644 --- a/kernel/ip_set_hash_netport.c +++ b/kernel/ip_set_hash_netport.c @@ -86,16 +86,6 @@ hash_netport4_data_copy(struct hash_netport4_elem *dst, dst->cidr = src->cidr; } -static inline void -hash_netport4_data_swap(struct hash_netport4_elem *dst, - struct hash_netport4_elem *src) -{ - swap(dst->ip, src->ip); - swap(dst->port, src->port); - swap(dst->proto, src->proto); - swap(dst->cidr, src->cidr); -} - static inline void hash_netport4_data_netmask(struct hash_netport4_elem *elem, u8 cidr) { @@ -109,7 +99,7 @@ hash_netport4_data_zero_out(struct hash_netport4_elem *elem) elem->proto = 0; } -static inline bool +static bool hash_netport4_data_list(struct sk_buff *skb, const struct hash_netport4_elem *data) { @@ -123,7 +113,7 @@ nla_put_failure: return 1; } -static inline bool +static bool hash_netport4_data_tlist(struct sk_buff *skb, const struct hash_netport4_elem *data) { @@ -324,17 +314,6 @@ hash_netport6_data_copy(struct hash_netport6_elem *dst, memcpy(dst, src, sizeof(*dst)); } -static inline void -hash_netport6_data_swap(struct hash_netport6_elem *dst, - struct hash_netport6_elem *src) -{ - struct hash_netport6_elem tmp; - - memcpy(&tmp, dst, sizeof(tmp)); - memcpy(dst, src, sizeof(tmp)); - memcpy(src, &tmp, sizeof(tmp)); -} - static inline void hash_netport6_data_zero_out(struct hash_netport6_elem *elem) { @@ -357,7 +336,7 @@ hash_netport6_data_netmask(struct hash_netport6_elem *elem, u8 cidr) elem->cidr = cidr; } -static inline bool +static bool hash_netport6_data_list(struct sk_buff *skb, const struct hash_netport6_elem *data) { @@ -371,7 +350,7 @@ nla_put_failure: return 1; } -static inline bool +static bool hash_netport6_data_tlist(struct sk_buff *skb, const struct hash_netport6_elem *data) { -- cgit v1.2.3