Two miscellneous patches
PATCH 1/2 libxc: xc_domain_resume_hvm is used by x86 only
In reply to Wei LiuThe 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
@@ -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
PATCH 2/2 libxc: remove second unistd.h inclusion
In reply to Wei LiuThere 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
@@ -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
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
Re: [PATCH 1/2] libxc: xc_domain_resume_hvm is used by x86 only
In reply to Wei LiuWei 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 intxc_domain_resume_hvm(xc_interface *xch, uint32_t domid)Reported-by Olaf Hering <[email protected]>Signed-off-by Wei Liu <[email protected]>
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