2.1.105: patch for some minor compilation warnings

Trevor Johnson (trevor@jpj.net)
Mon, 8 Jun 1998 15:02:49 -0700 (PDT)


I received these warnings:

soundmodule.h:23: warning: `sound_notifier' defined but not used
sound_core.c:123: warning: `sound_loader_lock' defined but not used
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'

Below is a patch which quiets the ones from scsi_debug.c.
___
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