summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArturo Borrero <arturo.borrero.glez@gmail.com>2015-04-06 20:05:41 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2015-04-08 19:07:54 +0200
commit86a65af62b6b986aa2ae3cbf3c655ea8225b027a (patch)
tree08f87586d636a77d76af7d585baf916eca9b2aa1
parent03ae6a709b089d07897be270e4d5fa378294e821 (diff)
list: fix prefetch dummy
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>
-rw-r--r--libiptc/linux_list.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libiptc/linux_list.h b/libiptc/linux_list.h
index abdcf88d..559e33c9 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()