Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
a5f2c3c4
Commit
a5f2c3c4
authored
Feb 03, 2005
by
James Bottomley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SCSI: fix compat_ioctl compile warnings
Signed-off-by:
James Bottomley
<
James.Bottomley@SteelEye.com
>
parent
7e8c19ef
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
drivers/scsi/aacraid/linit.c
drivers/scsi/aacraid/linit.c
+2
-2
drivers/scsi/osst.c
drivers/scsi/osst.c
+1
-1
drivers/scsi/st.c
drivers/scsi/st.c
+2
-2
No files found.
drivers/scsi/aacraid/linit.c
View file @
a5f2c3c4
...
...
@@ -514,10 +514,10 @@ static long aac_compat_do_ioctl(struct aac_dev *dev, unsigned cmd, unsigned long
return
ret
;
}
static
long
aac_compat_ioctl
(
struct
scsi_device
*
sdev
,
int
cmd
,
void
__user
*
arg
)
static
int
aac_compat_ioctl
(
struct
scsi_device
*
sdev
,
int
cmd
,
void
__user
*
arg
)
{
struct
aac_dev
*
dev
=
(
struct
aac_dev
*
)
sdev
->
host
->
hostdata
;
return
aac_compat_do_ioctl
(
dev
,
cmd
,
arg
);
return
aac_compat_do_ioctl
(
dev
,
cmd
,
(
unsigned
long
)
arg
);
}
static
long
aac_compat_cfg_ioctl
(
struct
file
*
file
,
unsigned
cmd
,
unsigned
long
arg
)
...
...
drivers/scsi/osst.c
View file @
a5f2c3c4
...
...
@@ -5129,7 +5129,7 @@ static long osst_compat_ioctl(struct file * file, unsigned int cmd_in, unsigned
int
ret
=
-
ENOIOCTLCMD
;
if
(
sdev
->
host
->
hostt
->
compat_ioctl
)
{
ret
=
sdev
->
host
->
hostt
->
compat_ioctl
(
sdev
,
cmd_in
,
arg
);
ret
=
sdev
->
host
->
hostt
->
compat_ioctl
(
sdev
,
cmd_in
,
(
void
__user
*
)
arg
);
}
return
ret
;
...
...
drivers/scsi/st.c
View file @
a5f2c3c4
...
...
@@ -3427,14 +3427,14 @@ static int st_ioctl(struct inode *inode, struct file *file,
}
#ifdef CONFIG_COMPAT
static
int
st_compat_ioctl
(
struct
file
*
file
,
unsigned
int
cmd
,
unsigned
long
arg
)
static
long
st_compat_ioctl
(
struct
file
*
file
,
unsigned
int
cmd
,
unsigned
long
arg
)
{
struct
scsi_tape
*
STp
=
file
->
private_data
;
struct
scsi_device
*
sdev
=
STp
->
device
;
int
ret
=
-
ENOIOCTLCMD
;
if
(
sdev
->
host
->
hostt
->
compat_ioctl
)
{
ret
=
sdev
->
host
->
hostt
->
compat_ioctl
(
sdev
,
cmd
,
arg
);
ret
=
sdev
->
host
->
hostt
->
compat_ioctl
(
sdev
,
cmd
,
(
void
__user
*
)
arg
);
}
return
ret
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment