summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>2015-08-20 12:45:20 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2015-08-26 20:43:51 +0200
commit16363ecdc6d0ecfb13702bd1b2b176c96e78b1bb (patch)
tree18e467d7a467c7c204dde9cffb7620ad21783ba3
parent4134f1dafcc981757c40177bb3c5a3a7a144ff30 (diff)
downloadconntrack-tools-16363ecdc6d0ecfb13702bd1b2b176c96e78b1bb.tar.gz
conntrack-tools-16363ecdc6d0ecfb13702bd1b2b176c96e78b1bb.zip
list: fix prefetch dummy
[...] CC conntrack.o In file included from ../include/conntrack.h:4:0, from conntrack.c:41: conntrack.c: In function ‘findproto’: ../include/linux_list.h:385:59: warning: right-hand operand of comma expression has no effect [-Wunused-value] for (pos = list_entry((head)->next, typeof(*pos), member), \ ^ [...] The original patch is from Patrick McHardy <kaber@trash.net>. Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r--include/linux_list.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux_list.h b/include/linux_list.h
index de182a4..efffb91 100644
--- a/include/linux_list.h
+++ b/include/linux_list.h
@@ -29,7 +29,7 @@
1; \
})
-#define prefetch(x) 1
+#define prefetch(x) ((void)0)
/* empty define to make this work in userspace -HW */
#ifndef smp_wmb