[U-Boot-Users] [PATCH] remove error meesage in usb_ohci.c when debug is enabled

Gururaja Hebbar K R gururajakr at sanyo.co.in
Thu Apr 3 02:57:59 CEST 2008


Hi,
 
In u-boot-1.3.1\drivers\usb\usb_ohci.c driver, if debug is enabled
(#define DEBUG), make comes out with an error as below.
 
<snip>
<snip>
<snip>
arm-none-linux-gnueabi-gcc -g  -Os   -fno-strict-aliasing  -fno-common
-ffixed-r8 -msoft-float  -D__KERNEL__ -DTEXT_BASE=0x200000
-I/home/guru/project/u_boot/Ubuild/include2
-I/home/guru/project/u_boot/Ubuild/include
-I/home/guru/project/u_boot/u-boot/include -fno-builtin -ffreestanding
-nostdinc -isystem
/home/guru/project/original/arm-2007q3/bin/../lib/gcc/arm-none-linux-gnu
eabi/4.2.1/include -pipe  -DCONFIG_ARM -D__ARM__ -march=armv4
-mabi=apcs-gnu -mno-thumb-interwork -Wall -Wstrict-prototypes -c -o
/home/guru/project/u_boot/Ubuild/drivers/usb/usb_ohci.o usb_ohci.c
usb_ohci.c: In function 'ohci_dump':
usb_ohci.c:513: error: invalid storage class for function
'sohci_return_job'
usb_ohci.c:552: error: invalid storage class for function
'sohci_get_current_frame_number'
usb_ohci.c:569: error: invalid storage class for function
'ep_int_ballance'
usb_ohci.c:591: error: invalid storage class for function
'ep_2_n_interval'
usb_ohci.c:604: error: invalid storage class for function 'ep_rev'
usb_ohci.c:619: error: invalid storage class for function 'ep_link'
usb_ohci.c:690: error: invalid storage class for function
'periodic_unlink'
usb_ohci.c:711: error: invalid storage class for function 'ep_unlink'
usb_ohci.c:774: error: invalid storage class for function 'ep_add_ed'
usb_ohci.c:823: error: invalid storage class for function 'td_fill'
usb_ohci.c:872: error: invalid storage class for function
'td_submit_job'
usb_ohci.c:944: error: invalid storage class for function
'dl_transfer_length'
usb_ohci.c:969: error: invalid storage class for function
'dl_reverse_done_list'
usb_ohci.c:1010: error: invalid storage class for function
'dl_done_list'
usb_ohci.c:1212: error: invalid storage class for function
'ohci_submit_rh_msg'
usb_ohci.c:1584: error: invalid storage class for function 'hc_reset'
usb_ohci.c:1632: error: invalid storage class for function 'hc_start'
usb_ohci.c:1697: error: invalid storage class for function
'hc_interrupt'
usb_ohci.c:1777: error: invalid storage class for function
'hc_release_ohci'
usb_ohci.c:1923: error: expected declaration or statement at end of
input
make[1]: *** [/home/guru/project/u_boot/Ubuild/drivers/usb/usb_ohci.o]
Error 1
make[1]: Leaving directory
`/home/guru/project/u_boot/u-boot/drivers/usb'
make: *** [/home/guru/project/u_boot/Ubuild/drivers/usb/libusb.a] Error
2


This is due to a missing } for function ohci_dump @ line 408.
 
Below patch corrects the same.
 
Comments are welcome.
 
Regards
Gururaja
 
Signed off by: Gururaja Hebbar <gururajakr at sanyo.co.in>


--- usb_ohci_orig.c	2007-12-06 01:21:19.000000000 -0800
+++ usb_ohci.c	2008-04-03 09:33:19.546875000 -0700
@@ -414,7 +414,7 @@ static void ohci_dump (ohci_t *controlle
 		ep_print_int_eds (controller, "hcca");
 	dbg ("hcca frame #%04x", controller->hcca->frame_no);
 	ohci_dump_roothub (controller, 1);
-
+}
 #endif /* DEBUG */
 
 
/*----------------------------------------------------------------------
---*




More information about the U-Boot mailing list