From: 7heo@7heo.tk Subject: Xen 4.2.2 release patch Date: Thu, 25 Apr 2013 16:48:50 +0200 Message-ID: <20130425144848.GA8060@7heo.tk> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="OgqxwSJOaUobr8KG" Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org --OgqxwSJOaUobr8KG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline I tried to build Xen from the git repository, cloning the RELEASE-4.2.2 tag, on a NetBSD 6.0.1 system installed on an i386 host. I got 4 warnings, causing the compilation to fail, due to the -Werror flag. Rather than removing the flag, I did prefer to patch the source, since the fix was really trivial. Please find the patch attached. Regards, 7heo. --OgqxwSJOaUobr8KG Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="xen.patch" diff --git a/tools/libxl/libxl_create.c b/tools/libxl/libxl_create.c index 12c2047..66e2806 100644 --- a/tools/libxl/libxl_create.c +++ b/tools/libxl/libxl_create.c @@ -355,7 +355,7 @@ int libxl__domain_build(libxl__gc *gc, vments[2] = "image/ostype"; vments[3] = "hvm"; vments[4] = "start_time"; - vments[5] = libxl__sprintf(gc, "%lu.%02d", start_time.tv_sec,(int)start_time.tv_usec/10000); + vments[5] = libxl__sprintf(gc, "%lu.%02d", (long unsigned int)(start_time.tv_sec),(int)start_time.tv_usec/10000); localents = libxl__calloc(gc, 7, sizeof(char *)); localents[0] = "platform/acpi"; @@ -378,7 +378,7 @@ int libxl__domain_build(libxl__gc *gc, vments[i++] = "image/kernel"; vments[i++] = (char *) state->pv_kernel.path; vments[i++] = "start_time"; - vments[i++] = libxl__sprintf(gc, "%lu.%02d", start_time.tv_sec,(int)start_time.tv_usec/10000); + vments[i++] = libxl__sprintf(gc, "%lu.%02d", (long unsigned int)(start_time.tv_sec),(int)start_time.tv_usec/10000); if (state->pv_ramdisk.path) { vments[i++] = "image/ramdisk"; vments[i++] = (char *) state->pv_ramdisk.path; @@ -849,7 +849,7 @@ void libxl__xc_domain_restore_done(libxl__egc *egc, void *dcs_void, vments[2] = "image/ostype"; vments[3] = "hvm"; vments[4] = "start_time"; - vments[5] = libxl__sprintf(gc, "%lu.%02d", start_time.tv_sec,(int)start_time.tv_usec/10000); + vments[5] = libxl__sprintf(gc, "%lu.%02d", (long unsigned int)(start_time.tv_sec),(int)start_time.tv_usec/10000); break; case LIBXL_DOMAIN_TYPE_PV: vments = libxl__calloc(gc, 11, sizeof(char *)); @@ -859,7 +859,7 @@ void libxl__xc_domain_restore_done(libxl__egc *egc, void *dcs_void, vments[i++] = "image/kernel"; vments[i++] = (char *) state->pv_kernel.path; vments[i++] = "start_time"; - vments[i++] = libxl__sprintf(gc, "%lu.%02d", start_time.tv_sec,(int)start_time.tv_usec/10000); + vments[i++] = libxl__sprintf(gc, "%lu.%02d", (long unsigned int)(start_time.tv_sec),(int)start_time.tv_usec/10000); if (state->pv_ramdisk.path) { vments[i++] = "image/ramdisk"; vments[i++] = (char *) state->pv_ramdisk.path; --OgqxwSJOaUobr8KG Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --OgqxwSJOaUobr8KG--