direct-io.hg

changeset 11360:3f87db7cac89

[XEN][POWERPC] Enable gcc -Wshadow and fix the warnings

As suggested by: Amos Waterland <apw@us.ibm.com>
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
author Jimi Xenidis <jimix@watson.ibm.com>
date Fri Aug 18 05:17:14 2006 -0400 (2006-08-18)
parents 639eb7e6446e
children 512078953bbb
files xen/arch/powerpc/Makefile xen/arch/powerpc/mpic.c xen/arch/powerpc/ofd_fixup.c
line diff
     1.1 --- a/xen/arch/powerpc/Makefile	Thu Aug 17 20:38:08 2006 -0400
     1.2 +++ b/xen/arch/powerpc/Makefile	Fri Aug 18 05:17:14 2006 -0400
     1.3 @@ -47,6 +47,7 @@ obj-y += elf32.o
     1.4  # These are extra warnings like for the arch/ppc directory but may not
     1.5  # allow the rest of the tree to build.
     1.6  PPC_C_WARNINGS += -Wundef -Wmissing-prototypes -Wmissing-declarations
     1.7 +PPC_C_WARNINGS += -Wshadow
     1.8  CFLAGS += $(PPC_C_WARNINGS)
     1.9  
    1.10  LINK=0x400000
     2.1 --- a/xen/arch/powerpc/mpic.c	Thu Aug 17 20:38:08 2006 -0400
     2.2 +++ b/xen/arch/powerpc/mpic.c	Fri Aug 18 05:17:14 2006 -0400
     2.3 @@ -498,10 +498,10 @@ static void mpic_enable_irq(unsigned int
     2.4  
     2.5  #ifdef CONFIG_MPIC_BROKEN_U3
     2.6  	if (mpic->flags & MPIC_BROKEN_U3) {
     2.7 -		unsigned int src = irq - mpic->irq_offset;
     2.8 -		if (mpic_is_ht_interrupt(mpic, src) &&
     2.9 +		unsigned int bsrc = irq - mpic->irq_offset;
    2.10 +		if (mpic_is_ht_interrupt(mpic, bsrc) &&
    2.11  		    (irq_desc[irq].status & IRQ_LEVEL))
    2.12 -			mpic_ht_end_irq(mpic, src);
    2.13 +			mpic_ht_end_irq(mpic, bsrc);
    2.14  	}
    2.15  #endif /* CONFIG_MPIC_BROKEN_U3 */
    2.16  }
     3.1 --- a/xen/arch/powerpc/ofd_fixup.c	Thu Aug 17 20:38:08 2006 -0400
     3.2 +++ b/xen/arch/powerpc/ofd_fixup.c	Fri Aug 18 05:17:14 2006 -0400
     3.3 @@ -497,8 +497,8 @@ int ofd_dom0_fixup(struct domain *d, ulo
     3.4      r = ofd_prop_add(m, n, "ibm,partition-no", &did, sizeof(did));
     3.5      ASSERT( r > 0 );
     3.6  
     3.7 -    const char dom0[] = "dom0";
     3.8 -    r = ofd_prop_add(m, n, "ibm,partition-name", dom0, sizeof (dom0));
     3.9 +    const char d0[] = "dom0";
    3.10 +    r = ofd_prop_add(m, n, "ibm,partition-name", d0, sizeof (d0));
    3.11      ASSERT( r > 0 );
    3.12  
    3.13