Two small patches

Ranaur the Elven Warlock (ranaur@10.1.0.1.rdc.puc-rio.br)
Sun, 8 Mar 1998 17:56:47 -0300 (EST)


Hi.

I've some two small problems compiling the 2.1.82 kernel. They
were very silly. So, I made the patches. I browsed the newer kernels (up
to 2.1.89) and haven't found any patch that changed theese files. If they
were alreadly discovered, sorry. If not it's good to send to the original
maintainers to see them. I don't have any of theese cards, so I cannot
promisse it will work (but it sounds that it should work fine).

First one in:
linux-devel/drivers/scsi/pci2000.c
(near line 656)
-Scsi_Host_Template driver_template = PCI2000;
+Scsi_Host_Template driver_template = PCI2000;

........

Second one in drivers/scsi/gdth_proc.c

diff drivers/scsi/gdth_proc.c drivers/scsi/gdth_proc.c.old
623,625c623,625
< if (timer_table[GDTH_TIMER].expires == 0) {
< timer_table[GDTH_TIMER].expires = jiffies + timeout;
< timer_active |= 1 << GDTH_TIMER;

---
>         if (timer_table[SCSI_TIMER].expires == 0) {
>             timer_table[SCSI_TIMER].expires = jiffies + timeout;
>             timer_active |= 1 << SCSI_TIMER;
627,628c627,628
<             if (jiffies + timeout < timer_table[GDTH_TIMER].expires)
<                 timer_table[GDTH_TIMER].expires = jiffies + timeout;
---
>             if (jiffies + timeout < timer_table[SCSI_TIMER].expires)
>                 timer_table[SCSI_TIMER].expires = jiffies + timeout;

(I added the line #define GDTH_TIMER 31 to make it compile. Is not the best solution, maybe a gdth.h if fine, but I don't want to do this. ;-) I got this define from gdth.c)

.....

I hope I've helped a little bit.

[]'s Ranaur

25958210934327660819053863079013528442657192058260165 6630801 I'm not a number 9366 I'm a free man! 5422897 828044862 ranaur@usa.net 09865717 The prisoner 74067 6533753 http://www.ecp.inf.puc-rio.br/~ranaur 8410316 7221239018286614591829569070318233356487508181730943

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