SCSI_TIMER problem in GDTH driver in Linux 2.1.87

Trevor Johnson (trevor@jpj.net)
Tue, 17 Feb 1998 21:24:22 -0800 (PST)


The GDTH driver still won't compile in 2.1.87:

gdth_proc.c: In function `gdth_update_timeout':
In file included from gdth.c:389:
gdth_proc.c:623: `SCSI_TIMER' undeclared (first use this function)
gdth_proc.c:623: (Each undeclared identifier is reported only once
gdth_proc.c:623: for each function it appears in.)
make[2]: *** [gdth.o] Error 1

Below is a patch against 2.1.80-pre2, posted by Byeong-ryeol Kim
<jinbo21@soback.kornet.nm.kr>.
___
Trevor Johnson

--- linux/drivers/scsi/gdth_proc.c~ Wed Nov 5 02:17:30 1997
+++ linux/drivers/scsi/gdth_proc.c Wed Dec 31 16:10:31 1997
@@ -3,6 +3,7 @@
*/

#include "gdth_ioctl.h"
+#define GDTH_TIMER 31

int gdth_proc_info(char *buffer,char **start,off_t offset,int length,
int hostno,int inout)
@@ -620,12 +621,12 @@
oldto = scp->timeout;
scp->timeout = timeout;
if (timeout > 0) {
- if (timer_table[SCSI_TIMER].expires == 0) {
- timer_table[SCSI_TIMER].expires = jiffies + timeout;
- timer_active |= 1 << SCSI_TIMER;
+ if (timer_table[GDTH_TIMER].expires == 0) {
+ timer_table[GDTH_TIMER].expires = jiffies + timeout;
+ timer_active |= 1 << GDTH_TIMER;
} else {
- if (jiffies + timeout < timer_table[SCSI_TIMER].expires)
- timer_table[SCSI_TIMER].expires = jiffies + timeout;
+ if (jiffies + timeout < timer_table[GDTH_TIMER].expires)
+ timer_table[GDTH_TIMER].expires = jiffies + timeout;
}
}

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu