summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2015-03-26 12:48:36 +0000
committerPatrick McHardy <kaber@trash.net>2015-03-26 12:48:36 +0000
commitebda8da3b5cf01ad79a51a890c78d226586f842d (patch)
treed351c4b1a40e18faf5db03df5c8ee9f743e0bd00
parent305b4707d134362c9229241b922c3b2286d3c150 (diff)
list: fix prefetch dummy
../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), \ ^ set.c:266:2: note: in expansion of macro 'list_for_each_entry' list_for_each_entry(elem, &set->element_list, head) { Signed-off-by: Patrick McHardy <kaber@trash.net>
-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