The following patch leads to a compilation error when CONFIG_USB_STORAGE_DEBUG is enabled:
Author: Dinh Nguyen <r00091@freescale.com> 2009-12-11 14:08:45
Committer: Alan Tull <r80115@freescale.com> 2010-08-26 02:52:12
Parent: 39f2f080b39ceb7ccbc0da4bc13fea5698f7fa3a (usb-storage: always print quirks)
Child: 0000000000000000000000000000000000000000 (Local uncommitted changes, not checked in to index)
Branches: remotes/origin/remote/freescale/imx_2.6.35, remotes/origin/remote/freescale/imx_2.6.35_1.1.0,
remotes/origin/remote/freescale/imx_2.6.35_10.10.01, remotes/origin/remote/freescale/imx_2.6.35_10.11.01,
remotes/origin/remote/freescale/imx_2.6.35_10.12.01, remotes/origin/remote/freescale/imx_2.6.35_11.04.01,
remotes/origin/remote/freescale/imx_2.6.35_11.05.01, remotes/origin/remote/freescale/imx_2.6.35_11.09.01
, remotes/origin/remote/freescale/imx_2.6.35_android_r10.3, remotes/origin/remote/freescale/imx_2.6.35_maintain
Follows: v2.6.35.3
Precedes: imx-android-r10.4, rel_imx_2.6.35_10.10.01, rel_imx_2.6.35_10.11.01, rel_imx_2.6.35_10.12.01_RC4, rel_imx_2.6.35_11.03.00
ENGR00118363 Fix SATA drive failure on Ubuntu 9.10
Fix SATA drive failure on Ubuntu 9.10
BugLink: https://bugs.launchpad.net/bugs/431963
Signed-off-by: Dinh Nguyen <r00091@freescale.com>
@@ -334,8 +334,11 @@ static int usb_stor_control_thread(void * __us)
/* we've got a command, let's do it! */
else {
- US_DEBUG(usb_stor_show_command(us->srb));
- us->proto_handler(us->srb, us);
+ US_DEBUGP(usb_stor_show_command(us->srb));
+#ifdef CONFIG_MACH_MX51_BABBAGE
+ if (us->srb->cmnd[0] != 0x85)
+#endif
+ us->proto_handler(us->srb, us);
}
The accidental change from "US_DEBUG()" to "US_DEBUGP()" causes the following:
arm-linux-gnueabi-gcc -Wp,-MD,drivers/usb/storage/.usb.o.d ... -c -o drivers/usb/storage/usb.o drivers/usb/storage/usb.c
drivers/usb/storage/usb.c: In function ‘usb_stor_control_thread’:
drivers/usb/storage/usb.c:337:4: error: expected ‘)’ before ‘usb_stor_show_command’
make[3]: *** [drivers/usb/storage/usb.o] Error 1
make[2]: *** [drivers/usb/storage] Error 2
make[1]: *** [drivers/usb] Error 2
make: *** [drivers] Error 2
Tom