Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
1bddd9e6
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
160
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
1bddd9e6
编写于
9月 02, 2008
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[PATCH] lose the unused file argument in generic_ide_ioctl()
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
74f3c8af
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
7 addition
and
9 deletion
+7
-9
drivers/ide/ide-cd.c
drivers/ide/ide-cd.c
+1
-1
drivers/ide/ide-disk_ioctl.c
drivers/ide/ide-disk_ioctl.c
+1
-1
drivers/ide/ide-floppy_ioctl.c
drivers/ide/ide-floppy_ioctl.c
+1
-1
drivers/ide/ide-ioctls.c
drivers/ide/ide-ioctls.c
+1
-2
drivers/ide/ide-tape.c
drivers/ide/ide-tape.c
+1
-1
drivers/scsi/ide-scsi.c
drivers/scsi/ide-scsi.c
+1
-1
include/linux/ide.h
include/linux/ide.h
+1
-2
未找到文件。
drivers/ide/ide-cd.c
浏览文件 @
1bddd9e6
...
...
@@ -2174,7 +2174,7 @@ static int idecd_ioctl(struct inode *inode, struct file *file,
break
;
}
err
=
generic_ide_ioctl
(
info
->
drive
,
file
,
bdev
,
cmd
,
arg
);
err
=
generic_ide_ioctl
(
info
->
drive
,
bdev
,
cmd
,
arg
);
if
(
err
==
-
EINVAL
)
err
=
cdrom_ioctl
(
file
,
&
info
->
devinfo
,
inode
,
cmd
,
arg
);
...
...
drivers/ide/ide-disk_ioctl.c
浏览文件 @
1bddd9e6
...
...
@@ -23,5 +23,5 @@ int ide_disk_ioctl(ide_drive_t *drive, struct inode *inode, struct file *file,
if
(
err
!=
-
EOPNOTSUPP
)
return
err
;
return
generic_ide_ioctl
(
drive
,
file
,
bdev
,
cmd
,
arg
);
return
generic_ide_ioctl
(
drive
,
bdev
,
cmd
,
arg
);
}
drivers/ide/ide-floppy_ioctl.c
浏览文件 @
1bddd9e6
...
...
@@ -284,7 +284,7 @@ int ide_floppy_ioctl(ide_drive_t *drive, struct inode *inode,
file
?
file
->
f_mode
:
0
,
cmd
,
argp
);
if
(
err
==
-
ENOTTY
)
err
=
generic_ide_ioctl
(
drive
,
file
,
bdev
,
cmd
,
arg
);
err
=
generic_ide_ioctl
(
drive
,
bdev
,
cmd
,
arg
);
return
err
;
}
drivers/ide/ide-ioctls.c
浏览文件 @
1bddd9e6
...
...
@@ -240,8 +240,7 @@ static int generic_drive_reset(ide_drive_t *drive)
return
ret
;
}
int
generic_ide_ioctl
(
ide_drive_t
*
drive
,
struct
file
*
file
,
struct
block_device
*
bdev
,
int
generic_ide_ioctl
(
ide_drive_t
*
drive
,
struct
block_device
*
bdev
,
unsigned
int
cmd
,
unsigned
long
arg
)
{
int
err
;
...
...
drivers/ide/ide-tape.c
浏览文件 @
1bddd9e6
...
...
@@ -2368,7 +2368,7 @@ static int idetape_ioctl(struct inode *inode, struct file *file,
struct
block_device
*
bdev
=
inode
->
i_bdev
;
struct
ide_tape_obj
*
tape
=
ide_drv_g
(
bdev
->
bd_disk
,
ide_tape_obj
);
ide_drive_t
*
drive
=
tape
->
drive
;
int
err
=
generic_ide_ioctl
(
drive
,
file
,
bdev
,
cmd
,
arg
);
int
err
=
generic_ide_ioctl
(
drive
,
bdev
,
cmd
,
arg
);
if
(
err
==
-
EINVAL
)
err
=
idetape_blkdev_ioctl
(
drive
,
cmd
,
arg
);
return
err
;
...
...
drivers/scsi/ide-scsi.c
浏览文件 @
1bddd9e6
...
...
@@ -478,7 +478,7 @@ static int idescsi_ide_ioctl(struct inode *inode, struct file *file,
{
struct
block_device
*
bdev
=
inode
->
i_bdev
;
struct
ide_scsi_obj
*
scsi
=
ide_scsi_g
(
bdev
->
bd_disk
);
return
generic_ide_ioctl
(
scsi
->
drive
,
file
,
bdev
,
cmd
,
arg
);
return
generic_ide_ioctl
(
scsi
->
drive
,
bdev
,
cmd
,
arg
);
}
static
struct
block_device_operations
idescsi_ops
=
{
...
...
include/linux/ide.h
浏览文件 @
1bddd9e6
...
...
@@ -1158,8 +1158,7 @@ struct ide_ioctl_devset {
int
ide_setting_ioctl
(
ide_drive_t
*
,
struct
block_device
*
,
unsigned
int
,
unsigned
long
,
const
struct
ide_ioctl_devset
*
);
int
generic_ide_ioctl
(
ide_drive_t
*
,
struct
file
*
,
struct
block_device
*
,
unsigned
,
unsigned
long
);
int
generic_ide_ioctl
(
ide_drive_t
*
,
struct
block_device
*
,
unsigned
,
unsigned
long
);
extern
int
ide_vlb_clk
;
extern
int
ide_pci_clk
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录