Skip to contentSkip to conversation

list: fix prefetch dummy

PATCH New Patrick McHardy 1 participant 1 message Mar 26, 2015 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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) {

---
 include/linux_list.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux_list.h +1 -1
index de182a4..efffb91 100644
@@ -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
Signature · 1 line
2.1.0