diff options
author | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2011-01-20 23:10:26 +0100 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2011-01-20 23:10:26 +0100 |
commit | ed3c453a0787ddc10c5ce6010bd6ac663c740b68 (patch) | |
tree | 10f36ee9dd9883d95c0e2a680483fcdacefc4e28 /kernel/ip_set_hash_netport.c | |
parent | eb873d2fc5240a873bc52d0cc57e4062288b291b (diff) |
Un-inline functions which are not small enough
Diffstat (limited to 'kernel/ip_set_hash_netport.c')
-rw-r--r-- | kernel/ip_set_hash_netport.c | 29 |
1 files changed, 4 insertions, 25 deletions
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 @@ -87,16 +87,6 @@ hash_netport4_data_copy(struct hash_netport4_elem *dst, } 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) { elem->ip &= ip_set_netmask(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) { @@ -325,17 +315,6 @@ hash_netport6_data_copy(struct hash_netport6_elem *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) { elem->proto = 0; @@ -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) { |