# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1173468823 0
# Node ID 188bab059272ce400bf8e858b4fb8d207655ea7c
# Parent ca7cd6752cc2dcb01066ca24b5652c7512f255eb
linux: fix build warnings
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
linux-2.6-xen-sparse/arch/i386/kernel/process-xen.c | 3 ++-
linux-2.6-xen-sparse/arch/i386/mm/pgtable-xen.c | 2 +-
linux-2.6-xen-sparse/arch/x86_64/kernel/process-xen.c | 3 ++-
3 files changed, 5 insertions(+), 3 deletions(-)
diff -r ca7cd6752cc2 -r 188bab059272
linux-2.6-xen-sparse/arch/i386/kernel/process-xen.c
--- a/linux-2.6-xen-sparse/arch/i386/kernel/process-xen.c Fri Mar 09
18:33:36 2007 +0000
+++ b/linux-2.6-xen-sparse/arch/i386/kernel/process-xen.c Fri Mar 09
19:33:43 2007 +0000
@@ -307,7 +307,8 @@ void exit_thread(void)
if (unlikely(test_thread_flag(TIF_IO_BITMAP))) {
struct task_struct *tsk = current;
struct thread_struct *t = &tsk->thread;
- struct physdev_set_iobitmap set_iobitmap = { 0 };
+ struct physdev_set_iobitmap set_iobitmap;
+ memset(&set_iobitmap, 0, sizeof(set_iobitmap));
HYPERVISOR_physdev_op(PHYSDEVOP_set_iobitmap, &set_iobitmap);
kfree(t->io_bitmap_ptr);
t->io_bitmap_ptr = NULL;
diff -r ca7cd6752cc2 -r 188bab059272
linux-2.6-xen-sparse/arch/i386/mm/pgtable-xen.c
--- a/linux-2.6-xen-sparse/arch/i386/mm/pgtable-xen.c Fri Mar 09 18:33:36
2007 +0000
+++ b/linux-2.6-xen-sparse/arch/i386/mm/pgtable-xen.c Fri Mar 09 19:33:43
2007 +0000
@@ -600,7 +600,7 @@ static void pgd_walk(pgd_t *pgd_base, pg
int g, u, m, rc;
if (xen_feature(XENFEAT_auto_translated_physmap))
- return 0;
+ return;
for (g = 0; g < USER_PTRS_PER_PGD; g++, pgd++) {
if (pgd_none(*pgd))
diff -r ca7cd6752cc2 -r 188bab059272
linux-2.6-xen-sparse/arch/x86_64/kernel/process-xen.c
--- a/linux-2.6-xen-sparse/arch/x86_64/kernel/process-xen.c Fri Mar 09
18:33:36 2007 +0000
+++ b/linux-2.6-xen-sparse/arch/x86_64/kernel/process-xen.c Fri Mar 09
19:33:43 2007 +0000
@@ -304,7 +304,8 @@ void exit_thread(void)
struct tss_struct *tss = &per_cpu(init_tss, get_cpu());
#endif
#ifdef CONFIG_XEN
- struct physdev_set_iobitmap iobmp_op = { 0 };
+ struct physdev_set_iobitmap iobmp_op;
+ memset(&iobmp_op, 0, sizeof(iobmp_op));
#endif
kfree(t->io_bitmap_ptr);
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|