|
|
9a3fa7 |
From 9db248f030af87e336b5880fc39e37a5beb7f291 Mon Sep 17 00:00:00 2001
|
|
|
9a3fa7 |
From: Phil Sutter <psutter@redhat.com>
|
|
|
9a3fa7 |
Date: Fri, 15 Mar 2019 17:52:42 +0100
|
|
|
9a3fa7 |
Subject: [PATCH] list: fix prefetch dummy
|
|
|
9a3fa7 |
|
|
|
9a3fa7 |
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1525980
|
|
|
9a3fa7 |
Upstream Status: iptables commit 86a65af62b6b9
|
|
|
9a3fa7 |
|
|
|
9a3fa7 |
commit 86a65af62b6b986aa2ae3cbf3c655ea8225b027a
|
|
|
9a3fa7 |
Author: Arturo Borrero <arturo.borrero.glez@gmail.com>
|
|
|
9a3fa7 |
Date: Mon Apr 6 20:05:41 2015 +0200
|
|
|
9a3fa7 |
|
|
|
9a3fa7 |
list: fix prefetch dummy
|
|
|
9a3fa7 |
|
|
|
9a3fa7 |
linux_list.h:381:59: warning: right-hand operand of comma expression has no effect [-Wunused-value]
|
|
|
9a3fa7 |
for (pos = list_entry((head)->next, typeof(*pos), member), \
|
|
|
9a3fa7 |
^
|
|
|
9a3fa7 |
libiptc.c:552:2: note: in expansion of macro 'list_for_each_entry'
|
|
|
9a3fa7 |
list_for_each_entry(c, &h->chains, list) {
|
|
|
9a3fa7 |
^
|
|
|
9a3fa7 |
|
|
|
9a3fa7 |
[ Patch copied from one similar of Patrick McHardy on libnftnl ]
|
|
|
9a3fa7 |
|
|
|
9a3fa7 |
Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
|
|
|
9a3fa7 |
|
|
|
9a3fa7 |
Signed-off-by: Phil Sutter <psutter@redhat.com>
|
|
|
9a3fa7 |
---
|
|
|
9a3fa7 |
libiptc/linux_list.h | 2 +-
|
|
|
9a3fa7 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
9a3fa7 |
|
|
|
9a3fa7 |
diff --git a/libiptc/linux_list.h b/libiptc/linux_list.h
|
|
|
9a3fa7 |
index abdcf88dadd64..559e33c9ebde0 100644
|
|
|
9a3fa7 |
--- a/libiptc/linux_list.h
|
|
|
9a3fa7 |
+++ b/libiptc/linux_list.h
|
|
|
9a3fa7 |
@@ -27,7 +27,7 @@
|
|
|
9a3fa7 |
1; \
|
|
|
9a3fa7 |
})
|
|
|
9a3fa7 |
|
|
|
9a3fa7 |
-#define prefetch(x) 1
|
|
|
9a3fa7 |
+#define prefetch(x) ((void)0)
|
|
|
9a3fa7 |
|
|
|
9a3fa7 |
/* empty define to make this work in userspace -HW */
|
|
|
9a3fa7 |
#define smp_wmb()
|
|
|
9a3fa7 |
--
|
|
|
9a3fa7 |
2.21.0
|
|
|
9a3fa7 |
|