WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] linux: fix build warnings

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] linux: fix build warnings
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 09 Mar 2007 13:30:13 -0800
Delivery-date: Fri, 09 Mar 2007 13:30:05 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] linux: fix build warnings, Xen patchbot-unstable <=