2005-04-19 12:53:35

by Barry K. Nathan

[permalink] [raw]
Subject: [PATCH] fix microtek.c compile failure

This is with gcc 3.4.3, against linux-2.6 head
9d469ee9f21c680c41dbffe5b0f36ab5010ca8b1 (the latest as of this
writing):

CC [M] drivers/usb/image/microtek.o
drivers/usb/image/microtek.c: In function `mts_scsi_abort':
drivers/usb/image/microtek.c:338: error: `FAILURE' undeclared (first use
in this function)
drivers/usb/image/microtek.c:338: error: (Each undeclared identifier is
reported only once
drivers/usb/image/microtek.c:338: error: for each function it appears in.)
make[3]: *** [drivers/usb/image/microtek.o] Error 1
make[2]: *** [drivers/usb/image] Error 2
make[1]: *** [drivers/usb] Error 2
make: *** [drivers] Error 2

This patch fixes the compile error. I don't have this hardware so I
don't think I can actually run this code, however.

Signed-off-by: Barry K. Nathan <[email protected]>

--- linux-2.6.12-rc2-9d469ee9f21c680c41dbffe5b0f36ab5010ca8b1/drivers/usb/image/microtek.c 2005-04-19 00:46:14.850813676 -0700
+++ linux-2.6.12-rc2-9d469ee9f21c680c41dbffe5b0f36ab5010ca8b1-bkn1/drivers/usb/image/microtek.c 2005-04-19 05:44:28.084118571 -0700
@@ -335,7 +335,7 @@

mts_urb_abort(desc);

- return FAILURE;
+ return FAILED;
}

static int mts_scsi_host_reset (Scsi_Cmnd *srb)