All of lore.kernel.org
 help / color / mirror / Atom feed
* [iptables PATCH] list: fix prefetch dummy
@ 2015-04-06 18:05 Arturo Borrero Gonzalez
  2015-04-07  0:38 ` Alexander Duyck
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Arturo Borrero Gonzalez @ 2015-04-06 18:05 UTC (permalink / raw)
  To: netfilter-devel; +Cc: kaber, pablo

linux_list.h:381:59: warning: right-hand operand of comma expression has no effect [-Wunused-value]
  for (pos = list_entry((head)->next, typeof(*pos), member), \
                                                           ^
libiptc.c:552:2: note: in expansion of macro 'list_for_each_entry'
  list_for_each_entry(c, &h->chains, list) {
  ^

[ Patch copied from one similar of Patrick McHardy on libnftnl ]

Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
---
 libiptc/linux_list.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libiptc/linux_list.h b/libiptc/linux_list.h
index abdcf88..559e33c 100644
--- a/libiptc/linux_list.h
+++ b/libiptc/linux_list.h
@@ -27,7 +27,7 @@
 	1; \
 })
 
-#define prefetch(x)		1
+#define prefetch(x)		((void)0)
 
 /* empty define to make this work in userspace -HW */
 #define smp_wmb()


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

end of thread, other threads:[~2015-04-09 10:40 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-06 18:05 [iptables PATCH] list: fix prefetch dummy Arturo Borrero Gonzalez
2015-04-07  0:38 ` Alexander Duyck
2015-04-07  8:37   ` Jan Engelhardt
2015-04-07 17:45     ` Alexander Duyck
2015-04-07 18:17       ` Jan Engelhardt
2015-04-07 19:29         ` Alexander Duyck
2015-04-08 17:04 ` Pablo Neira Ayuso
2015-04-09  0:18 ` Stephen Hemminger
2015-04-09 10:45   ` 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.