]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
list: fix prefetch dummy
authorArturo Borrero <arturo.borrero.glez@gmail.com>
Mon, 6 Apr 2015 18:05:41 +0000 (20:05 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 8 Apr 2015 17:07:54 +0000 (19:07 +0200)
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

index abdcf88dadd644353779ffb314894cc1ffff4967..559e33c9ebde06ab94dba8ee82c98b143d426b2f 100644 (file)
@@ -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()