From: Arturo Borrero Date: Mon, 6 Apr 2015 18:05:41 +0000 (+0200) Subject: list: fix prefetch dummy X-Git-Tag: v1.6.0~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86a65af62b6b986aa2ae3cbf3c655ea8225b027a;p=thirdparty%2Fiptables.git 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 --- 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()