[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] [IA64] Xen build warning fixes



# HG changeset patch
# User awilliam@xxxxxxxxxxxx
# Date 1170616019 25200
# Node ID 88c9ba6214bc642985874de7f4ed4b9677621cda
# Parent  339d9e632a80dbc6969483080c7497769bb9c6ff
[IA64] Xen build warning fixes

Missing include and remove an sprintf

Signed-off-by: Alex Williamson <alex.williamson@xxxxxx>
---
 xen/arch/ia64/xen/xensetup.c               |    1 +
 xen/include/asm-ia64/linux-xen/linux/efi.h |    4 ++++
 2 files changed, 5 insertions(+)

diff -r 339d9e632a80 -r 88c9ba6214bc xen/arch/ia64/xen/xensetup.c
--- a/xen/arch/ia64/xen/xensetup.c      Sun Feb 04 11:41:25 2007 -0700
+++ b/xen/arch/ia64/xen/xensetup.c      Sun Feb 04 12:06:59 2007 -0700
@@ -27,6 +27,7 @@
 #include <linux/efi.h>
 #include <asm/iosapic.h>
 #include <xen/softirq.h>
+#include <xen/rcupdate.h>
 
 unsigned long xenheap_phys_end, total_pages;
 
diff -r 339d9e632a80 -r 88c9ba6214bc xen/include/asm-ia64/linux-xen/linux/efi.h
--- a/xen/include/asm-ia64/linux-xen/linux/efi.h        Sun Feb 04 11:41:25 
2007 -0700
+++ b/xen/include/asm-ia64/linux-xen/linux/efi.h        Sun Feb 04 12:06:59 
2007 -0700
@@ -280,7 +280,11 @@ static inline char *
 static inline char *
 efi_guid_unparse(efi_guid_t *guid, char *out)
 {
+#ifndef XEN
        sprintf(out, 
"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",
+#else
+       snprintf(out, 37, 
"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",
+#endif
                guid->b[3], guid->b[2], guid->b[1], guid->b[0],
                guid->b[5], guid->b[4], guid->b[7], guid->b[6],
                guid->b[8], guid->b[9], guid->b[10], guid->b[11],

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.