All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xt_log.h: don't use xchg() for simple assignment
@ 2012-03-08  9:45 Jan Beulich
  2012-03-23 10:07 ` Pablo Neira Ayuso
  0 siblings, 1 reply; 5+ messages in thread
From: Jan Beulich @ 2012-03-08  9:45 UTC (permalink / raw)
  To: pablo, kaber; +Cc: netfilter-devel

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>

---
 include/net/netfilter/xt_log.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- 3.3-rc6/include/net/netfilter/xt_log.h
+++ 3.3-rc6-netfilter-xt_log-no-xchg/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();
 	}
 }




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

end of thread, other threads:[~2012-03-26 12:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-08  9:45 [PATCH] xt_log.h: don't use xchg() for simple assignment Jan Beulich
2012-03-23 10:07 ` Pablo Neira Ayuso
2012-03-23 10:14   ` Jan Beulich
2012-03-23 11:51     ` Eric Dumazet
2012-03-26 12:18       ` Pablo Neira Ayuso

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.