[U-Boot] Sparc build warnings
Marek Vasut
marex at denx.de
Sun Jul 22 07:15:53 CEST 2012
Hello,
I just recently got the following issues when building Sparc platforms with
debian gcc 4.7.1-5. Peter, you seems to be involved, can you please check on
these?
Configuring for grsim_leon2 board...
text data bss dec hex filename
95530 3328 2640 101498 18c7a ./u-boot
interrupts.c: In function ‘do_irqinfo’:
interrupts.c:213:11: warning: format ‘%lx’ expects argument of type ‘long
unsigned int’, but argument 3 has type ‘unsigned int’ [-Wformat]
interrupts.c:213:11: warning: format ‘%lx’ expects argument of type ‘long
unsigned int’, but argument 4 has type ‘unsigned int’ [-Wformat]
interrupts.c:213:11: warning: format ‘%ld’ expects argument of type ‘long int’,
but argument 5 has type ‘unsigned int’ [-Wformat]
board.c: In function ‘board_init_f’:
board.c:169:17: warning: unused variable ‘s’ [-Wunused-variable]
cmd_bdinfo.c: In function ‘do_bdinfo’:
cmd_bdinfo.c:220:9: warning: format ‘%lx’ expects argument of type ‘long
unsigned int’, but argument 2 has type ‘int’ [-Wformat]
cmd_bdinfo.c:222:9: warning: format ‘%lx’ expects argument of type ‘long
unsigned int’, but argument 2 has type ‘int’ [-Wformat]
cmd_bdinfo.c:224:9: warning: format ‘%lx’ expects argument of type ‘long
unsigned int’, but argument 2 has type ‘int’ [-Wformat]
cmd_bdinfo.c:226:9: warning: format ‘%lx’ expects argument of type ‘long
unsigned int’, but argument 2 has type ‘int’ [-Wformat]
cmd_bdinfo.c:228:9: warning: format ‘%lx’ expects argument of type ‘long
unsigned int’, but argument 2 has type ‘int’ [-Wformat]
Configuring for gr_cpci_ax2000 board...
text data bss dec hex filename
152186 4608 15232 172026 29ffa ./u-boot
board.c: In function ‘board_init_f’:
board.c:169:17: warning: unused variable ‘s’ [-Wunused-variable]
interrupts.c: In function ‘do_irqinfo’:
interrupts.c:215:11: warning: format ‘%lx’ expects argument of type ‘long
unsigned int’, but argument 3 has type ‘unsigned int’ [-Wformat]
interrupts.c:215:11: warning: format ‘%lx’ expects argument of type ‘long
unsigned int’, but argument 4 has type ‘unsigned int’ [-Wformat]
interrupts.c:215:11: warning: format ‘%ld’ expects argument of type ‘long int’,
but argument 5 has type ‘unsigned int’ [-Wformat]
cmd_bdinfo.c: In function ‘do_bdinfo’:
cmd_bdinfo.c:220:9: warning: format ‘%lx’ expects argument of type ‘long
unsigned int’, but argument 2 has type ‘int’ [-Wformat]
cmd_bdinfo.c:222:9: warning: format ‘%lx’ expects argument of type ‘long
unsigned int’, but argument 2 has type ‘int’ [-Wformat]
cmd_bdinfo.c:224:9: warning: format ‘%lx’ expects argument of type ‘long
unsigned int’, but argument 2 has type ‘int’ [-Wformat]
cmd_bdinfo.c:226:9: warning: format ‘%lx’ expects argument of type ‘long
unsigned int’, but argument 2 has type ‘int’ [-Wformat]
cmd_bdinfo.c:228:9: warning: format ‘%lx’ expects argument of type ‘long
unsigned int’, but argument 2 has type ‘int’ [-Wformat]
Configuring for gr_ep2s60 board...
text data bss dec hex filename
152082 4600 16192 172874 2a34a ./u-boot
board.c: In function ‘board_init_f’:
board.c:169:17: warning: unused variable ‘s’ [-Wunused-variable]
interrupts.c: In function ‘do_irqinfo’:
interrupts.c:215:11: warning: format ‘%lx’ expects argument of type ‘long
unsigned int’, but argument 3 has type ‘unsigned int’ [-Wformat]
interrupts.c:215:11: warning: format ‘%lx’ expects argument of type ‘long
unsigned int’, but argument 4 has type ‘unsigned int’ [-Wformat]
interrupts.c:215:11: warning: format ‘%ld’ expects argument of type ‘long int’,
but argument 5 has type ‘unsigned int’ [-Wformat]
cmd_bdinfo.c: In function ‘do_bdinfo’:
cmd_bdinfo.c:220:9: warning: format ‘%lx’ expects argument of type ‘long
unsigned int’, but argument 2 has type ‘int’ [-Wformat]
cmd_bdinfo.c:222:9: warning: format ‘%lx’ expects argument of type ‘long
unsigned int’, but argument 2 has type ‘int’ [-Wformat]
cmd_bdinfo.c:224:9: warning: format ‘%lx’ expects argument of type ‘long
unsigned int’, but argument 2 has type ‘int’ [-Wformat]
cmd_bdinfo.c:226:9: warning: format ‘%lx’ expects argument of type ‘long
unsigned int’, but argument 2 has type ‘int’ [-Wformat]
cmd_bdinfo.c:228:9: warning: format ‘%lx’ expects argument of type ‘long
unsigned int’, but argument 2 has type ‘int’ [-Wformat]
Configuring for grsim board...
text data bss dec hex filename
120410 4016 12592 137018 2173a ./u-boot
interrupts.c: In function ‘do_irqinfo’:
interrupts.c:215:11: warning: format ‘%lx’ expects argument of type ‘long
unsigned int’, but argument 3 has type ‘unsigned int’ [-Wformat]
interrupts.c:215:11: warning: format ‘%lx’ expects argument of type ‘long
unsigned int’, but argument 4 has type ‘unsigned int’ [-Wformat]
interrupts.c:215:11: warning: format ‘%ld’ expects argument of type ‘long int’,
but argument 5 has type ‘unsigned int’ [-Wformat]
board.c: In function ‘board_init_f’:
board.c:169:17: warning: unused variable ‘s’ [-Wunused-variable]
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]
cmd_bdinfo.c: In function ‘do_bdinfo’:
cmd_bdinfo.c:220:9: warning: format ‘%lx’ expects argument of type ‘long
unsigned int’, but argument 2 has type ‘int’ [-Wformat]
cmd_bdinfo.c:222:9: warning: format ‘%lx’ expects argument of type ‘long
unsigned int’, but argument 2 has type ‘int’ [-Wformat]
cmd_bdinfo.c:224:9: warning: format ‘%lx’ expects argument of type ‘long
unsigned int’, but argument 2 has type ‘int’ [-Wformat]
cmd_bdinfo.c:226:9: warning: format ‘%lx’ expects argument of type ‘long
unsigned int’, but argument 2 has type ‘int’ [-Wformat]
cmd_bdinfo.c:228:9: warning: format ‘%lx’ expects argument of type ‘long
unsigned int’, but argument 2 has type ‘int’ [-Wformat]
Configuring for gr_xc3s_1500 board...
text data bss dec hex filename
150906 4624 15232 170762 29b0a ./u-boot
interrupts.c: In function ‘do_irqinfo’:
interrupts.c:215:11: warning: format ‘%lx’ expects argument of type ‘long
unsigned int’, but argument 3 has type ‘unsigned int’ [-Wformat]
interrupts.c:215:11: warning: format ‘%lx’ expects argument of type ‘long
unsigned int’, but argument 4 has type ‘unsigned int’ [-Wformat]
interrupts.c:215:11: warning: format ‘%ld’ expects argument of type ‘long int’,
but argument 5 has type ‘unsigned int’ [-Wformat]
board.c: In function ‘board_init_f’:
board.c:169:17: warning: unused variable ‘s’ [-Wunused-variable]
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]
cmd_bdinfo.c: In function ‘do_bdinfo’:
cmd_bdinfo.c:220:9: warning: format ‘%lx’ expects argument of type ‘long
unsigned int’, but argument 2 has type ‘int’ [-Wformat]
cmd_bdinfo.c:222:9: warning: format ‘%lx’ expects argument of type ‘long
unsigned int’, but argument 2 has type ‘int’ [-Wformat]
cmd_bdinfo.c:224:9: warning: format ‘%lx’ expects argument of type ‘long
unsigned int’, but argument 2 has type ‘int’ [-Wformat]
cmd_bdinfo.c:226:9: warning: format ‘%lx’ expects argument of type ‘long
unsigned int’, but argument 2 has type ‘int’ [-Wformat]
cmd_bdinfo.c:228:9: warning: format ‘%lx’ expects argument of type ‘long
unsigned int’, but argument 2 has type ‘int’ [-Wformat]
--------------------- SUMMARY ----------------------------
Boards compiled: 5
Boards with warnings but no errors: 5 ( grsim_leon2 gr_cpci_ax2000 gr_ep2s60
grsim gr_xc3s_1500 )
----------------------------------------------------------
Best regards,
Marek Vasut
More information about the U-Boot
mailing list