Skip to content

Commit fd66c1b

Browse files
kmakisaraJames Bottomley
authored andcommitted
[SCSI] st: convert to unlocked_ioctl
Convert st to unlocked_ioctl. The necessary locking was already in place. Signed-off-by: Kai Makisara <[email protected]> Signed-off-by: James Bottomley <[email protected]>
1 parent 8ce3eca commit fd66c1b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

drivers/scsi/st.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
Steve Hirsch, Andreas Koppenh"ofer, Michael Leodolter, Eyal Lebedinsky,
1010
Michael Schaefer, J"org Weule, and Eric Youngdale.
1111
12-
Copyright 1992 - 2007 Kai Makisara
12+
Copyright 1992 - 2008 Kai Makisara
1313
1414
1515
Some small formal changes - aeb, 950809
1616
1717
Last modified: 18-JAN-1998 Richard Gooch <[email protected]> Devfs support
1818
*/
1919

20-
static const char *verstr = "20070203";
20+
static const char *verstr = "20080117";
2121

2222
#include <linux/module.h>
2323

@@ -3214,8 +3214,7 @@ static int partition_tape(struct scsi_tape *STp, int size)
32143214

32153215

32163216
/* The ioctl command */
3217-
static int st_ioctl(struct inode *inode, struct file *file,
3218-
unsigned int cmd_in, unsigned long arg)
3217+
static long st_ioctl(struct file *file, unsigned int cmd_in, unsigned long arg)
32193218
{
32203219
int i, cmd_nr, cmd_type, bt;
32213220
int retval = 0;
@@ -3870,7 +3869,7 @@ static const struct file_operations st_fops =
38703869
.owner = THIS_MODULE,
38713870
.read = st_read,
38723871
.write = st_write,
3873-
.ioctl = st_ioctl,
3872+
.unlocked_ioctl = st_ioctl,
38743873
#ifdef CONFIG_COMPAT
38753874
.compat_ioctl = st_compat_ioctl,
38763875
#endif

0 commit comments

Comments
 (0)