fix assorted wd7000 warnings
PATCH 1/1 fix assorted wd7000 warnings
- needs linux/delay.h for udelay
- C doesn't allow taking addresses of register variables and gcc even complains these days
drivers/scsi/wd7000.c +4 -3
@@ -165,6 +165,7 @@* Removed now obsolete wd7000.h */ +#include <linux/delay.h> #include <linux/module.h> #include <linux/interrupt.h> #include <linux/kernel.h>
@@ -846,7 +847,7 @@static inline Scb *alloc_scbs (struct Scsi_Host *host,int needed) { registerScb *scb, *p =NULL ; - registerunsigned long flags; +unsigned long flags; registerunsigned long timeout = jiffies + WAITnexttimeout; registerunsigned long now;int i;
@@ -898,7 +899,7 @@static inline void free_scb (Scb * scb) { - registerunsigned long flags; +unsigned long flags;spin_lock_irqsave (&scbpool_lock, flags);
@@ -936,7 +937,7 @@*/ { registerint i, ogmb; - registerunsigned long flags; +unsigned long flags;unchar start_ogmb;Mailbox *ogmbs = host->mb.ogmb;int *next_ogmb = &(host->next_ogmb);