diff options
-rw-r--r-- | recipes-extended/xen/files/libxl-compilation-warning-fix-for-arm-aarch64.patch | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/recipes-extended/xen/files/libxl-compilation-warning-fix-for-arm-aarch64.patch b/recipes-extended/xen/files/libxl-compilation-warning-fix-for-arm-aarch64.patch deleted file mode 100644 index baab9281..00000000 --- a/recipes-extended/xen/files/libxl-compilation-warning-fix-for-arm-aarch64.patch +++ /dev/null | |||
@@ -1,58 +0,0 @@ | |||
1 | Upstream-Status: Submitted | ||
2 | |||
3 | From 3716a7faf98e1e126d47fe1596593917c27ee1bd Mon Sep 17 00:00:00 2001 | ||
4 | From: Chris Patterson <pattersonc@ainfosec.com> | ||
5 | Date: Tue, 26 Jul 2016 16:01:47 -0400 | ||
6 | Subject: [PATCH] libxl: compilation warning fix for arm & aarch64 | ||
7 | |||
8 | GCC 6 will warn on unused static const variables in c modules: | ||
9 | https://gcc.gnu.org/ml/gcc-patches/2015-09/msg00847.html | ||
10 | |||
11 | When compiling with LIBXL_HAVE_NO_SUSPEND_RESUME set (arm & aarch64), | ||
12 | the compiler emits the following errors: | ||
13 | xl_cmdimpl.c:101:19: error: 'migrate_report' | ||
14 | defined but not used [-Werror=unused-const-variable=] | ||
15 | xl_cmdimpl.c:99:19: error: 'migrate_permission_to_go' | ||
16 | defined but not used [-Werror=unused-const-variable=] | ||
17 | xl_cmdimpl.c:97:19: error: 'migrate_receiver_ready' | ||
18 | defined but not used [-Werror=unused-const-variable=] | ||
19 | xl_cmdimpl.c:95:19: error: 'migrate_receiver_banner' | ||
20 | defined but not used [-Werror=unused-const-variable=] | ||
21 | |||
22 | These unused const variables are only used in functions which exist between | ||
23 | the ifndef block: | ||
24 | #ifndef LIBXL_HAVE_NO_SUSPEND_RESUME | ||
25 | ... | ||
26 | #endif | ||
27 | |||
28 | Wrap the same ifndef around these variables. | ||
29 | |||
30 | Signed-off-by: Chris Patterson <pattersonc@ainfosec.com> | ||
31 | --- | ||
32 | tools/libxl/xl_cmdimpl.c | 3 +++ | ||
33 | 1 file changed, 3 insertions(+) | ||
34 | |||
35 | diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c | ||
36 | index d1fcfa4..ada8178 100644 | ||
37 | --- a/tools/libxl/xl_cmdimpl.c | ||
38 | +++ b/tools/libxl/xl_cmdimpl.c | ||
39 | @@ -92,6 +92,7 @@ static int fd_lock = -1; | ||
40 | static const char savefileheader_magic[32]= | ||
41 | "Xen saved domain, xl format\n \0 \r"; | ||
42 | |||
43 | +#ifndef LIBXL_HAVE_NO_SUSPEND_RESUME | ||
44 | static const char migrate_receiver_banner[]= | ||
45 | "xl migration receiver ready, send binary domain data.\n"; | ||
46 | static const char migrate_receiver_ready[]= | ||
47 | @@ -100,6 +101,8 @@ static const char migrate_permission_to_go[]= | ||
48 | "domain is yours, you are cleared to unpause"; | ||
49 | static const char migrate_report[]= | ||
50 | "my copy unpause results are as follows"; | ||
51 | +#endif | ||
52 | + | ||
53 | /* followed by one byte: | ||
54 | * 0: everything went well, domain is running | ||
55 | * next thing is we all exit | ||
56 | -- | ||
57 | 2.7.4 | ||
58 | |||