Browse Source

netfilter: ipset: fix compiler warnings "'hash_ip4_data_next' declared inline after being called"

Some gcc versions warn about prototypes without "inline" when the declaration
includes the "inline" keyword. The fix generates a false error message
"marked inline, but without a definition" with sparse below 0.4.2.

Signed-off-by: Chris Friesen <chris.friesen@genband.com>
Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Chris Friesen 14 years ago
parent
commit
0f598f0b4c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/linux/netfilter/ipset/ip_set_ahash.h

+ 1 - 1
include/linux/netfilter/ipset/ip_set_ahash.h

@@ -392,7 +392,7 @@ retry:
 	return 0;
 	return 0;
 }
 }
 
 
-static void
+static inline void
 type_pf_data_next(struct ip_set_hash *h, const struct type_pf_elem *d);
 type_pf_data_next(struct ip_set_hash *h, const struct type_pf_elem *d);
 
 
 /* Add an element to a hash and update the internal counters when succeeded,
 /* Add an element to a hash and update the internal counters when succeeded,