aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/st.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2006-06-24 08:41:41 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2006-06-24 13:07:53 -0400
commit816724e65c72a90a44fbad0ef0b59b186c85fa90 (patch)
tree421fa29aedff988e392f92780637553e275d37a0 /drivers/scsi/st.c
parent70ac4385a13f78bc478f26d317511893741b05bd (diff)
parentd384ea691fe4ea8c2dd5b9b8d9042eb181776f18 (diff)
Merge branch 'master' of /home/trondmy/kernel/linux-2.6/
Conflicts: fs/nfs/inode.c fs/super.c Fix conflicts between patch 'NFS: Split fs/nfs/inode.c' and patch 'VFS: Permit filesystem to override root dentry on mount'
Diffstat (limited to 'drivers/scsi/st.c')
-rw-r--r--drivers/scsi/st.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/st.c b/drivers/scsi/st.c
index 56cb49006116..1272dd249af3 100644
--- a/drivers/scsi/st.c
+++ b/drivers/scsi/st.c
@@ -1193,7 +1193,7 @@ static int st_open(struct inode *inode, struct file *filp)
1193 1193
1194 1194
1195/* Flush the tape buffer before close */ 1195/* Flush the tape buffer before close */
1196static int st_flush(struct file *filp) 1196static int st_flush(struct file *filp, fl_owner_t id)
1197{ 1197{
1198 int result = 0, result2; 1198 int result = 0, result2;
1199 unsigned char cmd[MAX_COMMAND_SIZE]; 1199 unsigned char cmd[MAX_COMMAND_SIZE];
@@ -3839,7 +3839,7 @@ static int __init st_setup(char *str)
3839 break; 3839 break;
3840 } 3840 }
3841 } 3841 }
3842 if (i >= sizeof(parms) / sizeof(struct st_dev_parm)) 3842 if (i >= ARRAY_SIZE(parms))
3843 printk(KERN_WARNING "st: invalid parameter in '%s'\n", 3843 printk(KERN_WARNING "st: invalid parameter in '%s'\n",
3844 stp); 3844 stp);
3845 stp = strchr(stp, ','); 3845 stp = strchr(stp, ',');