patch: Linux 2.2.0-pre3 drivers/scsi/scsi_debug.cipc/util.c cosmetic warnings

Trevor Johnson (trevor@jpj.net)
Sat, 2 Jan 1999 02:04:02 -0800 (PST)


The patch below, which I posted in June, is still needed to suppress these
warnings:

scsi_debug.c:524: warning: unused variable `to'
scsi_debug.c:523: warning: unused variable `flags'
scsi_debug.c:521: warning: unused variable `pending'
scsi_debug.c:570: warning: unused variable `flags'
scsi_debug.c:569: warning: unused variable `my_done'
scsi_debug.c:568: warning: unused variable `j'
___
Trevor Johnson

--- linux/drivers/scsi/scsi_debug.c Sun Dec 21 17:04:49 1997
+++ linux-2.1.105-local/drivers/scsi/scsi_debug.c Mon Jun 8 14:25:18 1998
@@ -518,10 +518,10 @@
static void scsi_debug_intr_handle(unsigned long indx)
{
Scsi_Cmnd * SCtmp;
- int pending;
void (*my_done)(Scsi_Cmnd *);
- unsigned long flags;
+#ifdef DEBUG
int to;
+#endif

#if 0
del_timer(&timeout[indx]);
@@ -565,9 +565,11 @@

int scsi_debug_abort(Scsi_Cmnd * SCpnt)
{
+#if 0
int j;
void (*my_done)(Scsi_Cmnd *);
unsigned long flags;
+#endif

DEB(printk("scsi_debug_abort\n"));
#if 0

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/