patch-2.1.31 linux/drivers/scsi/st.c

Next file: linux/drivers/sound/soundcard.c
Previous file: linux/drivers/scsi/sr.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.30/linux/drivers/scsi/st.c linux/drivers/scsi/st.c
@@ -804,7 +804,7 @@
 
 
 /* Close the device*/
-	static void
+	static int
 scsi_tape_close(struct inode * inode, struct file * filp)
 {
     int result;
@@ -923,7 +923,7 @@
     if(st_template.module)
 	__MOD_DEC_USE_COUNT(st_template.module);
 
-    return;
+    return 0;
 }
 
 
@@ -2008,7 +2008,7 @@
 		      arg - MT_ST_HPLOADER_OFFSET);
 	   }
 #endif
-	   cmd[3] = arg; /* MediaID field of C1553A */
+	   cmd[3] = arg - MT_ST_HPLOADER_OFFSET; /* MediaID field of C1553A */
        }
 #if ST_NOWAIT
        cmd[1] = 1;  /* Don't wait for completion */
@@ -2975,6 +2975,7 @@
 }
 
 
+#ifndef MODULE
 /* Set the boot options. Syntax: st=xxx,yyy
    where xxx is buffer size in 1024 byte blocks and yyy is write threshold
    in 1024 byte blocks. */
@@ -2991,6 +2992,7 @@
   if (ints[0] > 2 && ints[3] > 0)
     st_max_buffers = ints[3];
 }
+#endif
 
 
 static struct file_operations st_fops = {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov