Skip to contentSkip to conversation

Two miscellneous patches

PATCH In review Wei Liu 2 participants 4 messages Apr 1, 2016

lore
Share & tools
lore
author
#1 lore raw

PATCH 1/2 libxc: xc_domain_resume_hvm is used by x86 only

In reply to Wei Liu

The call site is enclosed by x86 define guards.

Without this patch:

[ 334s] xc_resume.c:112:12: error: 'xc_domain_resume_hvm' defined but not used [-Werror=unused-function] [ 334s] static int xc_domain_resume_hvm(xc_interface *xch, uint32_t domid)

---
 tools/libxc/xc_resume.c | 2 ++
 1 file changed, 2 insertions(+)
tools/libxc/xc_resume.c +2 -0
index 6bf7d9c..2b6c308 100644
@@ -109,6 +109,7 @@ static int xc_domain_resume_cooperative(xc_interface *xch, uint32_t domid)
     return do_domctl(xch, &domctl);
 }
 
+#if defined(__i386__) || defined(__x86_64__)
 static int xc_domain_resume_hvm(xc_interface *xch, uint32_t domid)
 {
     DECLARE_DOMCTL;
@@ -128,6 +129,7 @@ static int xc_domain_resume_hvm(xc_interface *xch, uint32_t domid)
     domctl.domain = domid;
     return do_domctl(xch, &domctl);
 }
+#endif
 
 static int xc_domain_resume_any(xc_interface *xch, uint32_t domid)
 {
Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
author
#3 lore raw

PATCH 2/2 libxc: remove second unistd.h inclusion

In reply to Wei Liu

There is already one a few lines above.

---
 tools/libxc/include/xenctrl.h | 1 -
 1 file changed, 1 deletion(-)
tools/libxc/include/xenctrl.h +0 -1
index 13d5754..a964681 100644
@@ -32,7 +32,6 @@
 #include <stdint.h>
 #include <stdio.h>
 #include <stdbool.h>
-#include <unistd.h>
 #include <xen/xen.h>
 #include <xen/domctl.h>
 #include <xen/physdev.h>
Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

Wei Liu

author
#0 lore raw

cover Two miscellneous patches

Wei Liu (2):
libxc: xc_domain_resume_hvm is used by x86 only
libxc: remove second unistd.h inclusion

 tools/libxc/include/xenctrl.h | 1 -
 tools/libxc/xc_resume.c       | 2 ++
 2 files changed, 2 insertions(+), 1 deletion(-)
Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
#2 lore raw

Re: [PATCH 1/2] libxc: xc_domain_resume_hvm is used by x86 only

In reply to Wei Liu

Wei Liu writes ("[PATCH 1/2] libxc: xc_domain_resume_hvm is used by x86 only"):

Quoted 9 lines

The call site is enclosed by x86 define guards.

Without this patch:

[ 334s] xc_resume.c:112:12: error: 'xc_domain_resume_hvm' defined but not used [-Werror=unused-function] [ 334s] static int xc_domain_resume_hvm(xc_interface *xch, uint32_t domid)

Thanks, I have committed both of these. (I think we didn't want to wait any longer for a Tested-by.)

Ian.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel