diff options
author | Chris Friesen <chris.friesen@genband.com> | 2011-07-21 06:07:10 -0400 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2011-07-21 06:07:10 -0400 |
commit | 0f598f0b4c3b2259366cfa8adc01bd8e714c82d0 (patch) | |
tree | 40af6a1d8805919970f149e4728f47fe4d7fb931 | |
parent | 89dc79b787d20e4b6c4077dcee1c5b1be4ab55b8 (diff) |
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>
-rw-r--r-- | include/linux/netfilter/ipset/ip_set_ahash.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/netfilter/ipset/ip_set_ahash.h b/include/linux/netfilter/ipset/ip_set_ahash.h index 1e7f7594cd02..b89fb79cb44f 100644 --- a/include/linux/netfilter/ipset/ip_set_ahash.h +++ b/include/linux/netfilter/ipset/ip_set_ahash.h | |||
@@ -392,7 +392,7 @@ retry: | |||
392 | return 0; | 392 | return 0; |
393 | } | 393 | } |
394 | 394 | ||
395 | static void | 395 | static inline void |
396 | type_pf_data_next(struct ip_set_hash *h, const struct type_pf_elem *d); | 396 | type_pf_data_next(struct ip_set_hash *h, const struct type_pf_elem *d); |
397 | 397 | ||
398 | /* Add an element to a hash and update the internal counters when succeeded, | 398 | /* Add an element to a hash and update the internal counters when succeeded, |