* Netfilter ipt_hashlimit
@ 2005-03-10 22:29 Russell King
2005-03-11 12:05 ` Herbert Xu
0 siblings, 1 reply; 3+ messages in thread
From: Russell King @ 2005-03-10 22:29 UTC (permalink / raw)
To: Linux Kernel List, netfilter
With current-ish Linus 2.6 BK, I'm seeing this:
net/ipv4/netfilter/ipt_hashlimit.c:96: warning: type defaults to `int' in declaration of `DECLARE_LOCK'
net/ipv4/netfilter/ipt_hashlimit.c:96: warning: parameter names (without types) in function declaration
net/ipv4/netfilter/ipt_hashlimit.c: In function `htable_create':
net/ipv4/netfilter/ipt_hashlimit.c:237: warning: implicit declaration of function `LOCK_BH'
net/ipv4/netfilter/ipt_hashlimit.c:237: error: `hashlimit_lock' undeclared (first use in this function)
net/ipv4/netfilter/ipt_hashlimit.c:237: error: (Each undeclared identifier is reported only once/home/rmk/bk/linux-2.6-rmk/net/ipv4/netfilter/ipt_hashlimit.c:237: error: for each function it appears in.)
net/ipv4/netfilter/ipt_hashlimit.c:239: warning: implicit declaration of function `UNLOCK_BH'
net/ipv4/netfilter/ipt_hashlimit.c: In function `htable_find_get':
net/ipv4/netfilter/ipt_hashlimit.c:305: error: `hashlimit_lock' undeclared (first use in this function)
net/ipv4/netfilter/ipt_hashlimit.c: In function `htable_put':
net/ipv4/netfilter/ipt_hashlimit.c:321: error: `hashlimit_lock' undeclared (first use in this function)
net/ipv4/netfilter/ipt_hashlimit.c: At top level:
net/ipv4/netfilter/ipt_hashlimit.c:96: warning: `DECLARE_LOCK' declared `static' but never defined
Looks like ipt_hashlimit.c is missing an include?
--
Russell King
Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/
maintainer of: 2.6 Serial core
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Netfilter ipt_hashlimit
2005-03-10 22:29 Netfilter ipt_hashlimit Russell King
@ 2005-03-11 12:05 ` Herbert Xu
2005-03-15 5:41 ` David S. Miller
0 siblings, 1 reply; 3+ messages in thread
From: Herbert Xu @ 2005-03-11 12:05 UTC (permalink / raw)
To: Russell King; +Cc: linux-kernel, netfilter, davem
Russell King <rmk+lkml@arm.linux.org.uk> wrote:
> With current-ish Linus 2.6 BK, I'm seeing this:
>
> net/ipv4/netfilter/ipt_hashlimit.c:96: warning: type defaults to `int' in declaration of `DECLARE_LOCK'
> net/ipv4/netfilter/ipt_hashlimit.c:96: warning: parameter names (without types) in function declaration
>
> Looks like ipt_hashlimit.c is missing an include?
Indeed. It should include lockhelp.h directly.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Cheers,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
===== net/ipv4/netfilter/ipt_hashlimit.c 1.10 vs edited =====
--- 1.10/net/ipv4/netfilter/ipt_hashlimit.c 2005-03-11 07:06:22 +11:00
+++ edited/net/ipv4/netfilter/ipt_hashlimit.c 2005-03-11 22:56:24 +11:00
@@ -37,6 +37,7 @@
#include <linux/netfilter_ipv4/ip_tables.h>
#include <linux/netfilter_ipv4/ipt_hashlimit.h>
+#include <linux/netfilter_ipv4/lockhelp.h>
/* FIXME: this is just for IP_NF_ASSERRT */
#include <linux/netfilter_ipv4/ip_conntrack.h>
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: Netfilter ipt_hashlimit
2005-03-11 12:05 ` Herbert Xu
@ 2005-03-15 5:41 ` David S. Miller
0 siblings, 0 replies; 3+ messages in thread
From: David S. Miller @ 2005-03-15 5:41 UTC (permalink / raw)
To: Herbert Xu; +Cc: rmk+lkml, linux-kernel, netfilter
On Fri, 11 Mar 2005 23:05:11 +1100
Herbert Xu <herbert@gondor.apana.org.au> wrote:
> Russell King <rmk+lkml@arm.linux.org.uk> wrote:
> > With current-ish Linus 2.6 BK, I'm seeing this:
> >
> > net/ipv4/netfilter/ipt_hashlimit.c:96: warning: type defaults to `int' in declaration of `DECLARE_LOCK'
> > net/ipv4/netfilter/ipt_hashlimit.c:96: warning: parameter names (without types) in function declaration
> >
> > Looks like ipt_hashlimit.c is missing an include?
>
> Indeed. It should include lockhelp.h directly.
>
> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Applied, thanks Herbert.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-03-15 5:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-10 22:29 Netfilter ipt_hashlimit Russell King
2005-03-11 12:05 ` Herbert Xu
2005-03-15 5:41 ` David S. Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox