From 86a65af62b6b986aa2ae3cbf3c655ea8225b027a Mon Sep 17 00:00:00 2001 From: Arturo Borrero Date: Mon, 6 Apr 2015 20:05:41 +0200 Subject: 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 --- libiptc/linux_list.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libiptc') 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() -- cgit v1.2.3