direct-io.hg

changeset 14324:188bab059272

linux: fix build warnings
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Fri Mar 09 19:33:43 2007 +0000 (2007-03-09)
parents ca7cd6752cc2
children 83756471416f
files linux-2.6-xen-sparse/arch/i386/kernel/process-xen.c linux-2.6-xen-sparse/arch/i386/mm/pgtable-xen.c linux-2.6-xen-sparse/arch/x86_64/kernel/process-xen.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/arch/i386/kernel/process-xen.c	Fri Mar 09 18:33:36 2007 +0000
     1.2 +++ b/linux-2.6-xen-sparse/arch/i386/kernel/process-xen.c	Fri Mar 09 19:33:43 2007 +0000
     1.3 @@ -307,7 +307,8 @@ void exit_thread(void)
     1.4  	if (unlikely(test_thread_flag(TIF_IO_BITMAP))) {
     1.5  		struct task_struct *tsk = current;
     1.6  		struct thread_struct *t = &tsk->thread;
     1.7 -		struct physdev_set_iobitmap set_iobitmap = { 0 };
     1.8 +		struct physdev_set_iobitmap set_iobitmap;
     1.9 +		memset(&set_iobitmap, 0, sizeof(set_iobitmap));
    1.10  		HYPERVISOR_physdev_op(PHYSDEVOP_set_iobitmap, &set_iobitmap);
    1.11  		kfree(t->io_bitmap_ptr);
    1.12  		t->io_bitmap_ptr = NULL;
     2.1 --- a/linux-2.6-xen-sparse/arch/i386/mm/pgtable-xen.c	Fri Mar 09 18:33:36 2007 +0000
     2.2 +++ b/linux-2.6-xen-sparse/arch/i386/mm/pgtable-xen.c	Fri Mar 09 19:33:43 2007 +0000
     2.3 @@ -600,7 +600,7 @@ static void pgd_walk(pgd_t *pgd_base, pg
     2.4  	int    g, u, m, rc;
     2.5  
     2.6  	if (xen_feature(XENFEAT_auto_translated_physmap))
     2.7 -		return 0;
     2.8 +		return;
     2.9  
    2.10  	for (g = 0; g < USER_PTRS_PER_PGD; g++, pgd++) {
    2.11  		if (pgd_none(*pgd))
     3.1 --- a/linux-2.6-xen-sparse/arch/x86_64/kernel/process-xen.c	Fri Mar 09 18:33:36 2007 +0000
     3.2 +++ b/linux-2.6-xen-sparse/arch/x86_64/kernel/process-xen.c	Fri Mar 09 19:33:43 2007 +0000
     3.3 @@ -304,7 +304,8 @@ void exit_thread(void)
     3.4  		struct tss_struct *tss = &per_cpu(init_tss, get_cpu());
     3.5  #endif
     3.6  #ifdef CONFIG_XEN
     3.7 -		struct physdev_set_iobitmap iobmp_op = { 0 };
     3.8 +		struct physdev_set_iobitmap iobmp_op;
     3.9 +		memset(&iobmp_op, 0, sizeof(iobmp_op));
    3.10  #endif
    3.11  
    3.12  		kfree(t->io_bitmap_ptr);