netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] netfilter fixes for 3.4-rc1
@ 2012-04-03  9:50 pablo
  2012-04-03  9:50 ` [PATCH 1/3] netfilter: xt_LOG: don't use xchg() for simple assignment pablo
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: pablo @ 2012-04-03  9:50 UTC (permalink / raw)
  To: netfilter-devel; +Cc: davem

From: Pablo Neira Ayuso <pablo@netfilter.org>

Hi David,

The following patches contain a couple of small fixes for Netfilter:

* One compilation warning fix for xt_LOG from Jan Beulich.

* Fix compilation issues of user-land ipset with kernel header file
  from Jan Engelhardt via Jozsef Kadlecsik.

* Fix one compilation warning in the recent changes done in xt_CT to
  support the extended cttimeout infrastracture, spotted by Eric
  Dumazet.

You can pull them from:

git://1984.lsi.us.es/net master

Thanks!

Jan Beulich (1):
  netfilter: xt_LOG: don't use xchg() for simple assignment

Jan Engelhardt (1):
  netfilter: ipset: avoid use of kernel-only types

Pablo Neira Ayuso (1):
  netfilter: xt_CT: remove a compile warning

 include/linux/netfilter/xt_set.h |    4 ++--
 include/net/netfilter/xt_log.h   |    2 +-
 net/netfilter/xt_CT.c            |    2 ++
 3 files changed, 5 insertions(+), 3 deletions(-)

-- 
1.7.2.5


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/3] netfilter: xt_LOG: don't use xchg() for simple assignment
  2012-04-03  9:50 [PATCH 0/3] netfilter fixes for 3.4-rc1 pablo
@ 2012-04-03  9:50 ` pablo
  2012-04-03  9:50 ` [PATCH 2/3] netfilter: ipset: avoid use of kernel-only types pablo
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: pablo @ 2012-04-03  9:50 UTC (permalink / raw)
  To: netfilter-devel; +Cc: davem

From: Jan Beulich <JBeulich@suse.com>

At least on ia64 the (bogus) use of xchg() here results in the compiler
warning about an unused expression result. As only an assignment is
intended here, convert it to such.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
---
 include/net/netfilter/xt_log.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/net/netfilter/xt_log.h b/include/net/netfilter/xt_log.h
index 7e1544e..9d9756c 100644
--- a/include/net/netfilter/xt_log.h
+++ b/include/net/netfilter/xt_log.h
@@ -47,7 +47,7 @@ static void sb_close(struct sbuff *m)
 	if (likely(m != &emergency))
 		kfree(m);
 	else {
-		xchg(&emergency_ptr, m);
+		emergency_ptr = m;
 		local_bh_enable();
 	}
 }
-- 
1.7.2.5


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/3] netfilter: ipset: avoid use of kernel-only types
  2012-04-03  9:50 [PATCH 0/3] netfilter fixes for 3.4-rc1 pablo
  2012-04-03  9:50 ` [PATCH 1/3] netfilter: xt_LOG: don't use xchg() for simple assignment pablo
@ 2012-04-03  9:50 ` pablo
  2012-04-03  9:50 ` [PATCH 3/3] netfilter: xt_CT: remove a compile warning pablo
  2012-04-03 23:16 ` [PATCH 0/3] netfilter fixes for 3.4-rc1 David Miller
  3 siblings, 0 replies; 5+ messages in thread
From: pablo @ 2012-04-03  9:50 UTC (permalink / raw)
  To: netfilter-devel; +Cc: davem

From: Jan Engelhardt <jengelh@medozas.de>

When using the xt_set.h header in userspace, one will get these gcc
reports:

ipset/ip_set.h:184:1: error: unknown type name "u16"
In file included from libxt_SET.c:21:0:
netfilter/xt_set.h:61:2: error: unknown type name "u32"
netfilter/xt_set.h:62:2: error: unknown type name "u32"

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
---
 include/linux/netfilter/xt_set.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/linux/netfilter/xt_set.h b/include/linux/netfilter/xt_set.h
index c0405ac..e3a9978 100644
--- a/include/linux/netfilter/xt_set.h
+++ b/include/linux/netfilter/xt_set.h
@@ -58,8 +58,8 @@ struct xt_set_info_target_v1 {
 struct xt_set_info_target_v2 {
 	struct xt_set_info add_set;
 	struct xt_set_info del_set;
-	u32 flags;
-	u32 timeout;
+	__u32 flags;
+	__u32 timeout;
 };
 
 #endif /*_XT_SET_H*/
-- 
1.7.2.5


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 3/3] netfilter: xt_CT: remove a compile warning
  2012-04-03  9:50 [PATCH 0/3] netfilter fixes for 3.4-rc1 pablo
  2012-04-03  9:50 ` [PATCH 1/3] netfilter: xt_LOG: don't use xchg() for simple assignment pablo
  2012-04-03  9:50 ` [PATCH 2/3] netfilter: ipset: avoid use of kernel-only types pablo
@ 2012-04-03  9:50 ` pablo
  2012-04-03 23:16 ` [PATCH 0/3] netfilter fixes for 3.4-rc1 David Miller
  3 siblings, 0 replies; 5+ messages in thread
From: pablo @ 2012-04-03  9:50 UTC (permalink / raw)
  To: netfilter-devel; +Cc: davem

From: Pablo Neira Ayuso <pablo@netfilter.org>

If CONFIG_NF_CONNTRACK_TIMEOUT=n we have following warning :

  CC [M]  net/netfilter/xt_CT.o
net/netfilter/xt_CT.c: In function ‘xt_ct_tg_check_v1’:
net/netfilter/xt_CT.c:284: warning: label ‘err4’ defined but not used

Reported-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
---
 net/netfilter/xt_CT.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/net/netfilter/xt_CT.c b/net/netfilter/xt_CT.c
index 0c8e438..138b75e 100644
--- a/net/netfilter/xt_CT.c
+++ b/net/netfilter/xt_CT.c
@@ -281,8 +281,10 @@ out:
 	info->ct = ct;
 	return 0;
 
+#ifdef CONFIG_NF_CONNTRACK_TIMEOUT
 err4:
 	rcu_read_unlock();
+#endif
 err3:
 	nf_conntrack_free(ct);
 err2:
-- 
1.7.2.5

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 0/3] netfilter fixes for 3.4-rc1
  2012-04-03  9:50 [PATCH 0/3] netfilter fixes for 3.4-rc1 pablo
                   ` (2 preceding siblings ...)
  2012-04-03  9:50 ` [PATCH 3/3] netfilter: xt_CT: remove a compile warning pablo
@ 2012-04-03 23:16 ` David Miller
  3 siblings, 0 replies; 5+ messages in thread
From: David Miller @ 2012-04-03 23:16 UTC (permalink / raw)
  To: pablo; +Cc: netfilter-devel

From: pablo@netfilter.org
Date: Tue,  3 Apr 2012 11:50:55 +0200

> The following patches contain a couple of small fixes for Netfilter:
> 
> * One compilation warning fix for xt_LOG from Jan Beulich.
> 
> * Fix compilation issues of user-land ipset with kernel header file
>   from Jan Engelhardt via Jozsef Kadlecsik.
> 
> * Fix one compilation warning in the recent changes done in xt_CT to
>   support the extended cttimeout infrastracture, spotted by Eric
>   Dumazet.
> 
> You can pull them from:
> 
> git://1984.lsi.us.es/net master

Pulled.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-04-03 23:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-03  9:50 [PATCH 0/3] netfilter fixes for 3.4-rc1 pablo
2012-04-03  9:50 ` [PATCH 1/3] netfilter: xt_LOG: don't use xchg() for simple assignment pablo
2012-04-03  9:50 ` [PATCH 2/3] netfilter: ipset: avoid use of kernel-only types pablo
2012-04-03  9:50 ` [PATCH 3/3] netfilter: xt_CT: remove a compile warning pablo
2012-04-03 23:16 ` [PATCH 0/3] netfilter fixes for 3.4-rc1 David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).