[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [XenPPC] [xenppc-unstable] [ppc] fix warnings caught by gcc-4.0.3
# HG changeset patch # User jimix@xxxxxxxxxxxxxxxxxxx # Node ID 517ce601ae9d49a63fd14d61a5f6a060fbf2853c # Parent 7fe3f6570bab585930863919f2ff6a6c281bb2b2 [ppc] fix warnings caught by gcc-4.0.3 --- xen/arch/ppc/boot_of.c | 2 +- xen/arch/ppc/mpic.c | 4 ++-- xen/arch/ppc/of_handler/control.c | 2 +- xen/arch/ppc/of_handler/devtree.c | 12 ++++++------ xen/arch/ppc/of_handler/io.c | 6 +++--- xen/arch/ppc/of_handler/memory.c | 4 ++-- xen/arch/ppc/of_handler/ofh.c | 4 ++-- xen/arch/ppc/of_handler/ofh.h | 4 ++-- xen/arch/ppc/ofd_fixup.c | 2 +- xen/arch/ppc/papr/tce.c | 2 +- 10 files changed, 21 insertions(+), 21 deletions(-) diff -r 7fe3f6570bab -r 517ce601ae9d xen/arch/ppc/boot_of.c --- a/xen/arch/ppc/boot_of.c Mon Jun 05 14:56:22 2006 -0400 +++ b/xen/arch/ppc/boot_of.c Mon Jun 05 14:57:12 2006 -0400 @@ -62,7 +62,7 @@ extern s32 prom_call(void *arg, ulong rt extern s32 prom_call(void *arg, ulong rtas_base, ulong func, ulong msr); static int __init of_call( - const char *service, u32 nargs, u32 nrets, u32 rets[], ...) + const char *service, u32 nargs, u32 nrets, s32 rets[], ...) { int rc; diff -r 7fe3f6570bab -r 517ce601ae9d xen/arch/ppc/mpic.c --- a/xen/arch/ppc/mpic.c Mon Jun 05 14:56:22 2006 -0400 +++ b/xen/arch/ppc/mpic.c Mon Jun 05 14:57:12 2006 -0400 @@ -896,7 +896,7 @@ void __init mpic_init(struct mpic *mpic) void mpic_irq_set_priority(unsigned int irq, unsigned int pri) { - int is_ipi; + unsigned is_ipi; struct mpic *mpic = mpic_find(irq, &is_ipi); unsigned long flags; u32 reg; @@ -918,7 +918,7 @@ void mpic_irq_set_priority(unsigned int unsigned int mpic_irq_get_priority(unsigned int irq) { - int is_ipi; + unsigned is_ipi; struct mpic *mpic = mpic_find(irq, &is_ipi); unsigned long flags; u32 reg; diff -r 7fe3f6570bab -r 517ce601ae9d xen/arch/ppc/of_handler/control.c --- a/xen/arch/ppc/of_handler/control.c Mon Jun 05 14:56:22 2006 -0400 +++ b/xen/arch/ppc/of_handler/control.c Mon Jun 05 14:57:12 2006 -0400 @@ -48,7 +48,7 @@ ofh_exit(u32 nargs __attribute__ ((unuse ulong b) { static const char msg[] = "OFH: exit method called\n"; - u32 dummy; + s32 dummy; ofh_cons_write(DRELA(&msg[0], b), sizeof (msg), &dummy); diff -r 7fe3f6570bab -r 517ce601ae9d xen/arch/ppc/of_handler/devtree.c --- a/xen/arch/ppc/of_handler/devtree.c Mon Jun 05 14:56:22 2006 -0400 +++ b/xen/arch/ppc/of_handler/devtree.c Mon Jun 05 14:57:12 2006 -0400 @@ -26,7 +26,7 @@ ofh_peer(u32 nargs, u32 nrets, s32 argp[ if (nargs == 1) { if (nrets == 1) { ofdn_t ph = argp[0]; - u32 *sib_ph = &retp[0]; + s32 *sib_ph = &retp[0]; void *mem = ofd_mem(b); *sib_ph = ofd_node_peer(mem, ph); @@ -42,7 +42,7 @@ ofh_child(u32 nargs, u32 nrets, s32 argp if (nargs == 1) { if (nrets == 1) { ofdn_t ph = argp[0]; - u32 *ch_ph = &retp[0]; + s32 *ch_ph = &retp[0]; void *mem = ofd_mem(b); *ch_ph = ofd_node_child(mem, ph); @@ -58,7 +58,7 @@ ofh_parent(u32 nargs, u32 nrets, s32 arg if (nargs == 1) { if (nrets == 1) { ofdn_t ph = argp[0]; - u32 *parent_ph = &retp[0]; + s32 *parent_ph = &retp[0]; void *mem = ofd_mem(b); *parent_ph = ofd_node_parent(mem, ph); @@ -76,7 +76,7 @@ ofh_instance_to_package(u32 nargs, u32 n if (nrets == 1) { struct ofh_ihandle *ih = (struct ofh_ihandle *)(ulong)argp[0]; - u32 *p = &retp[0]; + s32 *p = &retp[0]; *p = (s32)ih->ofi_node; return OF_SUCCESS; @@ -173,7 +173,7 @@ ofh_canon(u32 nargs, u32 nrets, s32 argp const char *dev_spec = (const char *)(ulong)argp[0]; char *buf = (char *)(ulong)argp[1]; u32 sz = argp[2]; - u32 *len = &retp[0]; + s32 *len = &retp[0]; void *mem = ofd_mem(b); ofdn_t ph; @@ -227,7 +227,7 @@ ofh_instance_to_path(u32 nargs, u32 nret (struct ofh_ihandle *)((ulong)argp[0]); char *buf = (char *)(ulong)argp[1]; u32 sz = argp[2]; - u32 *len = &retp[0]; + s32 *len = &retp[0]; ofdn_t ph; void *mem = ofd_mem(b); diff -r 7fe3f6570bab -r 517ce601ae9d xen/arch/ppc/of_handler/io.c --- a/xen/arch/ppc/of_handler/io.c Mon Jun 05 14:56:22 2006 -0400 +++ b/xen/arch/ppc/of_handler/io.c Mon Jun 05 14:57:12 2006 -0400 @@ -25,7 +25,7 @@ ofh_open(u32 nargs, u32 nrets, s32 argp[ if (nargs == 1) { if (nrets == 1) { const char *devspec = (const char *)(ulong)argp[0]; - u32 *ih = &retp[0]; + s32 *ih = &retp[0]; ofdn_t p; void *mem = ofd_mem(b); @@ -72,7 +72,7 @@ ofh_read(u32 nargs, u32 nrets, s32 argp[ if (ih->ofi_read != NULL) { void *addr = (void *)(ulong)argp[1]; u32 sz = argp[2]; - u32 *actual = &retp[0]; + s32 *actual = &retp[0]; void *f = ih->ofi_read; if (f != 0) { @@ -96,7 +96,7 @@ ofh_write(u32 nargs, u32 nrets, s32 argp if (ih->ofi_write != NULL) { void *addr = (void *)(ulong)argp[1]; u32 sz = argp[2]; - u32 *actual = &retp[0]; + s32 *actual = &retp[0]; void *f = ih->ofi_write; if (f != 0) { diff -r 7fe3f6570bab -r 517ce601ae9d xen/arch/ppc/of_handler/memory.c --- a/xen/arch/ppc/of_handler/memory.c Mon Jun 05 14:56:22 2006 -0400 +++ b/xen/arch/ppc/of_handler/memory.c Mon Jun 05 14:57:12 2006 -0400 @@ -25,7 +25,7 @@ static struct of_malloc_s claimed[64]; static struct of_malloc_s claimed[64]; static s32 -claim(ulong b, u32 virt, u32 size, u32 align, u32 *baseaddr) +claim(ulong b, u32 virt, u32 size, u32 align, s32 *baseaddr) { struct of_malloc_s *cp; u32 i; @@ -76,7 +76,7 @@ ofh_claim(u32 nargs, u32 nrets, s32 argp u32 virt = argp[0]; u32 size = argp[1]; u32 align = argp[2]; - u32 *baseaddr = &retp[0]; + s32 *baseaddr = &retp[0]; return claim(b, virt, size, align, baseaddr); } diff -r 7fe3f6570bab -r 517ce601ae9d xen/arch/ppc/of_handler/ofh.c --- a/xen/arch/ppc/of_handler/ofh.c Mon Jun 05 14:56:22 2006 -0400 +++ b/xen/arch/ppc/of_handler/ofh.c Mon Jun 05 14:57:12 2006 -0400 @@ -67,7 +67,7 @@ assprint(const char *expr, const char *f a[13] = '\n'; a[14] = '\n'; - u32 actual; + s32 actual; u32 t = 1; volatile u32 *tp = &t; @@ -319,7 +319,7 @@ ofh_handler(struct ofh_args *args, ulong if ((ulong)ofd_mem(b) < (ulong)_end + b) { static const char msg[] = "PANIC: OFD and BSS collide\n"; - u32 dummy; + s32 dummy; ofh_cons_write(DRELA(&msg[0], b), sizeof (msg), &dummy); for (;;); diff -r 7fe3f6570bab -r 517ce601ae9d xen/arch/ppc/of_handler/ofh.h --- a/xen/arch/ppc/of_handler/ofh.h Mon Jun 05 14:56:22 2006 -0400 +++ b/xen/arch/ppc/of_handler/ofh.h Mon Jun 05 14:57:12 2006 -0400 @@ -124,10 +124,10 @@ extern s32 ofh_cons_write(const void *bu extern s32 ofh_cons_write(const void *buf, u32 count, s32 *actual); extern s32 ofh_cons_close(void); extern s32 ofh_handler(struct ofh_args *args, ulong ifh_base); -extern s32 leap(u32 nargs, u32 nrets, u32 args[], u32 rets[], +extern s32 leap(u32 nargs, u32 nrets, s32 args[], s32 rets[], ulong ba, void *f); -extern s32 io_leap(s32 chan, void *buf, u32 sz, u32 *actual, +extern s32 io_leap(s32 chan, void *buf, u32 sz, s32 *actual, ulong ba, void *f); extern void ofh_vty_init(ofdn_t chosen, ulong b); diff -r 7fe3f6570bab -r 517ce601ae9d xen/arch/ppc/ofd_fixup.c --- a/xen/arch/ppc/ofd_fixup.c Mon Jun 05 14:56:22 2006 -0400 +++ b/xen/arch/ppc/ofd_fixup.c Mon Jun 05 14:57:12 2006 -0400 @@ -484,7 +484,7 @@ int ofd_dom0_fixup(struct domain *d, ulo ofd_cpus_props(m, d); printk("Add /chosen props\n"); - ofd_chosen_props(m, si->cmd_line); + ofd_chosen_props(m, (char *)si->cmd_line); printk("fix /memory@0 props\n"); ofd_memory_props(m, d, eoload); diff -r 7fe3f6570bab -r 517ce601ae9d xen/arch/ppc/papr/tce.c --- a/xen/arch/ppc/papr/tce.c Mon Jun 05 14:56:22 2006 -0400 +++ b/xen/arch/ppc/papr/tce.c Mon Jun 05 14:57:12 2006 -0400 @@ -70,7 +70,7 @@ static void h_stuff_tce(struct cpu_user_ #ifdef DEBUG printk("%s: liobn: 0x%x ioba: 0x%lx tce: 0x%" PRIx64"(0x%"PRIx64") count: %lu\n", - __func__, liobn, ioba, tce.tce_dword, tce.tce_bits.tce_rpn, + __func__, liobn, ioba, tce.tce_dword, (long)tce.tce_bits.tce_rpn, count); #endif regs->gprs[3] = H_Function; _______________________________________________ Xen-ppc-devel mailing list Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-ppc-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |