[U-Boot] [U-Boot, 1/3] dm: sparc: net: Fixup greth compile warnings

Marek Vasut marex at denx.de
Tue Sep 18 21:23:13 CEST 2012


Dear Tom Rini,

> On Fri, Jul 27, 2012 at 08:04:32AM -0000, Marek Vasut wrote:
> > greth.c: In function ???greth_recv???:
> > greth.c:507:3: warning: format ???%lx??? expects argument of type ???long
> > unsigned int???, but argument 2 has type ???unsigned int??? [-Wformat]
> > greth.c:507:3: warning: format ???%lx??? expects argument of type
> > ???long unsigned int???, but argument 3 has type ???unsigned int???
> > [-Wformat] greth.c:541:6: warning: pointer targets in assignment differ
> > in signedness [-Wpointer-sign] greth.c: In function
> > ???greth_initialize???:
> > greth.c:623:2: warning: format ???%lx??? expects argument of type ???long
> > unsigned int???, but argument 2 has type ???struct greth_regs *???
> > [-Wformat] greth.c:655:3: warning: format ???%x??? expects argument of
> > type ???unsigned int???, but argument 2 has type ???struct greth_regs
> > *??? [-Wformat] greth.c:684:2: warning: format ???%x??? expects argument
> > of type ???unsigned int???, but argument 2 has type ???struct greth_regs
> > *??? [-Wformat]
> > 
> > Signed-off-by: Marek Vasut <marex at denx.de>
> > Cc: Joe Hershberger <joe.hershberger at gmail.com>
> > Cc: Daniel Hellstrom <daniel at gaisler.com>
> > Cc: u-boot-dm at lists.denx.de
> 
> Applied to u-boot/master, thanks!

I wonder if we shouldn't throw all that sparc crap away ... same with m68k. It's 
starting to rot, noone uses it anymore anyway.

Best regards,
Marek Vasut


More information about the U-Boot mailing list