Skip to contentSkip to conversation

list: fix prefetch dummy

PATCH In review Arturo Borrero Gonzalez 2 participants 2 messages Aug 20, 2015 – Aug 26, 2015 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 list: fix prefetch dummy

From: Arturo Borrero Gonzalez <[email protected]>

[...]
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 <[email protected]>.

---
 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

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#1 lore raw
Quoted 11 lines · Arturo Borrero Gonzalez

From: Arturo Borrero Gonzalez <[email protected]>

[...]
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), \
                                                          ^

[...]

Thanks for taking care of this, Arturo.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html