summaryrefslogtreecommitdiffstats
path: root/recipes-extended/xen/files/tools-kdd-mute-spurious-gcc-warning-part2.patch
diff options
context:
space:
mode:
authorChristopher Clark <christopher.w.clark@gmail.com>2018-07-31 12:35:42 -0700
committerBruce Ashfield <bruce.ashfield@windriver.com>2018-08-02 22:57:14 -0400
commit9955e81b23eb6bb264b32c5bb02b326097a4ec02 (patch)
tree5aa96388dcf449b2b9f5b8bce380a0e35941d42a /recipes-extended/xen/files/tools-kdd-mute-spurious-gcc-warning-part2.patch
parent02d2c7daeb5b3edd83b850eb5397d0b297a11c8a (diff)
downloadmeta-virtualization-9955e81b23eb6bb264b32c5bb02b326097a4ec02.tar.gz
xen: upgrade to 4.10.1, and apply patches for gcc 8.1 compatibility
Adds packaging for new binary: xen-shim. Builds the hypervisor before building the tools to workaround an upstream parallel build bug that causes the shim to be rebuilt during install. Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'recipes-extended/xen/files/tools-kdd-mute-spurious-gcc-warning-part2.patch')
-rw-r--r--recipes-extended/xen/files/tools-kdd-mute-spurious-gcc-warning-part2.patch52
1 files changed, 52 insertions, 0 deletions
diff --git a/recipes-extended/xen/files/tools-kdd-mute-spurious-gcc-warning-part2.patch b/recipes-extended/xen/files/tools-kdd-mute-spurious-gcc-warning-part2.patch
new file mode 100644
index 00000000..afd14231
--- /dev/null
+++ b/recipes-extended/xen/files/tools-kdd-mute-spurious-gcc-warning-part2.patch
@@ -0,0 +1,52 @@
1From 2de2b10b2252761baa5dd0077df384dbfcca8212 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?=
3 <marmarek@invisiblethingslab.com>
4Date: Tue, 22 May 2018 21:47:45 +0200
5Subject: [PATCH] tools/kdd: alternative way of muting spurious gcc warning
6MIME-Version: 1.0
7Content-Type: text/plain; charset=UTF-8
8Content-Transfer-Encoding: 8bit
9
10Older gcc does not support #pragma GCC diagnostics, so use alternative
11approach - change variable type to uint32_t (this code handle 32-bit
12requests only anyway), which apparently also avoid gcc complaining about
13this (otherwise correct) code.
14
15Fixes 437e00fea04becc91c1b6bc1c0baa636b067a5cc "tools/kdd: mute spurious
16gcc warning"
17
18Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
19Acked-by: Wei Liu <wei.liu2@citrix.com>
20Release-acked-by: Juergen Gross <jgross@suse.com>
21Acked-by: Tim Deegan <tim@xen.org>
22---
23 tools/debugger/kdd/kdd.c | 5 +----
24 1 file changed, 1 insertion(+), 4 deletions(-)
25
26diff --git a/tools/debugger/kdd/kdd.c b/tools/debugger/kdd/kdd.c
27index 61d769e..5a019a0 100644
28--- a/tools/debugger/kdd/kdd.c
29+++ b/tools/debugger/kdd/kdd.c
30@@ -687,7 +687,7 @@ static void kdd_handle_read_ctrl(kdd_state *s)
31 }
32 } else {
33 /* 32-bit control-register space starts at 0x[2]cc, for 84 bytes */
34- uint64_t offset = addr;
35+ uint32_t offset = addr;
36 if (offset > 0x200)
37 offset -= 0x200;
38 offset -= 0xcc;
39@@ -695,10 +695,7 @@ static void kdd_handle_read_ctrl(kdd_state *s)
40 KDD_LOG(s, "Request outside of known control space\n");
41 len = 0;
42 } else {
43-#pragma GCC diagnostic push
44-#pragma GCC diagnostic ignored "-Warray-bounds"
45 memcpy(buf, ((uint8_t *)&ctrl.c32) + offset, len);
46-#pragma GCC diagnostic pop
47 }
48 }
49
50--
512.7.4
52