Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
75ef9de1
K
Kernel
项目概览
openeuler
/
Kernel
大约 1 年 前同步成功
通知
5
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
75ef9de1
编写于
4月 04, 2013
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
constify a bunch of struct file_operations instances
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
c10c062c
变更
13
隐藏空白更改
内联
并排
Showing
13 changed file
with
17 addition
and
17 deletion
+17
-17
arch/powerpc/kvm/book3s_64_mmu_hv.c
arch/powerpc/kvm/book3s_64_mmu_hv.c
+1
-1
arch/powerpc/kvm/book3s_64_vio.c
arch/powerpc/kvm/book3s_64_vio.c
+1
-1
arch/powerpc/kvm/book3s_hv.c
arch/powerpc/kvm/book3s_hv.c
+1
-1
drivers/media/rc/ir-lirc-codec.c
drivers/media/rc/ir-lirc-codec.c
+1
-1
drivers/media/rc/lirc_dev.c
drivers/media/rc/lirc_dev.c
+1
-1
drivers/s390/cio/qdio_debug.c
drivers/s390/cio/qdio_debug.c
+1
-1
drivers/scsi/qla2xxx/qla_os.c
drivers/scsi/qla2xxx/qla_os.c
+1
-1
drivers/staging/csr/drv.c
drivers/staging/csr/drv.c
+2
-2
drivers/staging/dgrp/dgrp_specproc.c
drivers/staging/dgrp/dgrp_specproc.c
+3
-3
drivers/staging/ft1000/ft1000-usb/ft1000_debug.c
drivers/staging/ft1000/ft1000-usb/ft1000_debug.c
+1
-1
drivers/staging/rtl8192u/ieee80211/proc.c
drivers/staging/rtl8192u/ieee80211/proc.c
+1
-1
drivers/staging/silicom/bpctl_mod.c
drivers/staging/silicom/bpctl_mod.c
+1
-1
fs/nfsd/nfsctl.c
fs/nfsd/nfsctl.c
+2
-2
未找到文件。
arch/powerpc/kvm/book3s_64_mmu_hv.c
浏览文件 @
75ef9de1
...
@@ -1467,7 +1467,7 @@ static int kvm_htab_release(struct inode *inode, struct file *filp)
...
@@ -1467,7 +1467,7 @@ static int kvm_htab_release(struct inode *inode, struct file *filp)
return
0
;
return
0
;
}
}
static
struct
file_operations
kvm_htab_fops
=
{
static
const
struct
file_operations
kvm_htab_fops
=
{
.
read
=
kvm_htab_read
,
.
read
=
kvm_htab_read
,
.
write
=
kvm_htab_write
,
.
write
=
kvm_htab_write
,
.
llseek
=
default_llseek
,
.
llseek
=
default_llseek
,
...
...
arch/powerpc/kvm/book3s_64_vio.c
浏览文件 @
75ef9de1
...
@@ -92,7 +92,7 @@ static int kvm_spapr_tce_release(struct inode *inode, struct file *filp)
...
@@ -92,7 +92,7 @@ static int kvm_spapr_tce_release(struct inode *inode, struct file *filp)
return
0
;
return
0
;
}
}
static
struct
file_operations
kvm_spapr_tce_fops
=
{
static
const
struct
file_operations
kvm_spapr_tce_fops
=
{
.
mmap
=
kvm_spapr_tce_mmap
,
.
mmap
=
kvm_spapr_tce_mmap
,
.
release
=
kvm_spapr_tce_release
,
.
release
=
kvm_spapr_tce_release
,
};
};
...
...
arch/powerpc/kvm/book3s_hv.c
浏览文件 @
75ef9de1
...
@@ -1483,7 +1483,7 @@ static int kvm_rma_release(struct inode *inode, struct file *filp)
...
@@ -1483,7 +1483,7 @@ static int kvm_rma_release(struct inode *inode, struct file *filp)
return
0
;
return
0
;
}
}
static
struct
file_operations
kvm_rma_fops
=
{
static
const
struct
file_operations
kvm_rma_fops
=
{
.
mmap
=
kvm_rma_mmap
,
.
mmap
=
kvm_rma_mmap
,
.
release
=
kvm_rma_release
,
.
release
=
kvm_rma_release
,
};
};
...
...
drivers/media/rc/ir-lirc-codec.c
浏览文件 @
75ef9de1
...
@@ -307,7 +307,7 @@ static void ir_lirc_close(void *data)
...
@@ -307,7 +307,7 @@ static void ir_lirc_close(void *data)
return
;
return
;
}
}
static
struct
file_operations
lirc_fops
=
{
static
const
struct
file_operations
lirc_fops
=
{
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
.
write
=
ir_lirc_transmit_ir
,
.
write
=
ir_lirc_transmit_ir
,
.
unlocked_ioctl
=
ir_lirc_ioctl
,
.
unlocked_ioctl
=
ir_lirc_ioctl
,
...
...
drivers/media/rc/lirc_dev.c
浏览文件 @
75ef9de1
...
@@ -152,7 +152,7 @@ static int lirc_thread(void *irctl)
...
@@ -152,7 +152,7 @@ static int lirc_thread(void *irctl)
}
}
static
struct
file_operations
lirc_dev_fops
=
{
static
const
struct
file_operations
lirc_dev_fops
=
{
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
.
read
=
lirc_dev_fop_read
,
.
read
=
lirc_dev_fop_read
,
.
write
=
lirc_dev_fop_write
,
.
write
=
lirc_dev_fop_write
,
...
...
drivers/s390/cio/qdio_debug.c
浏览文件 @
75ef9de1
...
@@ -224,7 +224,7 @@ static int qperf_seq_open(struct inode *inode, struct file *filp)
...
@@ -224,7 +224,7 @@ static int qperf_seq_open(struct inode *inode, struct file *filp)
file_inode
(
filp
)
->
i_private
);
file_inode
(
filp
)
->
i_private
);
}
}
static
struct
file_operations
debugfs_perf_fops
=
{
static
const
struct
file_operations
debugfs_perf_fops
=
{
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
.
open
=
qperf_seq_open
,
.
open
=
qperf_seq_open
,
.
read
=
seq_read
,
.
read
=
seq_read
,
...
...
drivers/scsi/qla2xxx/qla_os.c
浏览文件 @
75ef9de1
...
@@ -5351,7 +5351,7 @@ static struct pci_driver qla2xxx_pci_driver = {
...
@@ -5351,7 +5351,7 @@ static struct pci_driver qla2xxx_pci_driver = {
.
err_handler
=
&
qla2xxx_err_handler
,
.
err_handler
=
&
qla2xxx_err_handler
,
};
};
static
struct
file_operations
apidev_fops
=
{
static
const
struct
file_operations
apidev_fops
=
{
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
.
llseek
=
noop_llseek
,
.
llseek
=
noop_llseek
,
};
};
...
...
drivers/staging/csr/drv.c
浏览文件 @
75ef9de1
...
@@ -1941,7 +1941,7 @@ uf_sme_queue_message(unifi_priv_t *priv, u8 *buffer, int length)
...
@@ -1941,7 +1941,7 @@ uf_sme_queue_message(unifi_priv_t *priv, u8 *buffer, int length)
*
*
****************************************************************************
****************************************************************************
*/
*/
static
struct
file_operations
unifi_fops
=
{
static
const
struct
file_operations
unifi_fops
=
{
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
.
open
=
unifi_open
,
.
open
=
unifi_open
,
.
release
=
unifi_release
,
.
release
=
unifi_release
,
...
@@ -2041,7 +2041,7 @@ void uf_destroy_device_nodes(unifi_priv_t *priv)
...
@@ -2041,7 +2041,7 @@ void uf_destroy_device_nodes(unifi_priv_t *priv)
* ----------------------------------------------------------------
* ----------------------------------------------------------------
*/
*/
static
int
static
int
uf_create_debug_device
(
struct
file_operations
*
fops
)
uf_create_debug_device
(
const
struct
file_operations
*
fops
)
{
{
int
ret
;
int
ret
;
...
...
drivers/staging/dgrp/dgrp_specproc.c
浏览文件 @
75ef9de1
...
@@ -63,7 +63,7 @@ static int dgrp_nodeinfo_proc_open(struct inode *inode, struct file *file);
...
@@ -63,7 +63,7 @@ static int dgrp_nodeinfo_proc_open(struct inode *inode, struct file *file);
static
int
dgrp_info_proc_open
(
struct
inode
*
inode
,
struct
file
*
file
);
static
int
dgrp_info_proc_open
(
struct
inode
*
inode
,
struct
file
*
file
);
static
int
dgrp_config_proc_open
(
struct
inode
*
inode
,
struct
file
*
file
);
static
int
dgrp_config_proc_open
(
struct
inode
*
inode
,
struct
file
*
file
);
static
struct
file_operations
config_proc_file_ops
=
{
static
const
struct
file_operations
config_proc_file_ops
=
{
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
.
open
=
dgrp_config_proc_open
,
.
open
=
dgrp_config_proc_open
,
.
read
=
seq_read
,
.
read
=
seq_read
,
...
@@ -72,7 +72,7 @@ static struct file_operations config_proc_file_ops = {
...
@@ -72,7 +72,7 @@ static struct file_operations config_proc_file_ops = {
.
write
=
dgrp_config_proc_write
,
.
write
=
dgrp_config_proc_write
,
};
};
static
struct
file_operations
info_proc_file_ops
=
{
static
const
struct
file_operations
info_proc_file_ops
=
{
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
.
open
=
dgrp_info_proc_open
,
.
open
=
dgrp_info_proc_open
,
.
read
=
seq_read
,
.
read
=
seq_read
,
...
@@ -80,7 +80,7 @@ static struct file_operations info_proc_file_ops = {
...
@@ -80,7 +80,7 @@ static struct file_operations info_proc_file_ops = {
.
release
=
single_release
,
.
release
=
single_release
,
};
};
static
struct
file_operations
nodeinfo_proc_file_ops
=
{
static
const
struct
file_operations
nodeinfo_proc_file_ops
=
{
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
.
open
=
dgrp_nodeinfo_proc_open
,
.
open
=
dgrp_nodeinfo_proc_open
,
.
read
=
seq_read
,
.
read
=
seq_read
,
...
...
drivers/staging/ft1000/ft1000-usb/ft1000_debug.c
浏览文件 @
75ef9de1
...
@@ -55,7 +55,7 @@ int numofmsgbuf = 0;
...
@@ -55,7 +55,7 @@ int numofmsgbuf = 0;
//
//
// Table of entry-point routines for char device
// Table of entry-point routines for char device
//
//
static
struct
file_operations
ft1000fops
=
static
const
struct
file_operations
ft1000fops
=
{
{
.
unlocked_ioctl
=
ft1000_ioctl
,
.
unlocked_ioctl
=
ft1000_ioctl
,
.
poll
=
ft1000_poll_dev
,
.
poll
=
ft1000_poll_dev
,
...
...
drivers/staging/rtl8192u/ieee80211/proc.c
浏览文件 @
75ef9de1
...
@@ -99,7 +99,7 @@ static int crypto_info_open(struct inode *inode, struct file *file)
...
@@ -99,7 +99,7 @@ static int crypto_info_open(struct inode *inode, struct file *file)
return
seq_open
(
file
,
&
crypto_seq_ops
);
return
seq_open
(
file
,
&
crypto_seq_ops
);
}
}
static
struct
file_operations
proc_crypto_ops
=
{
static
const
struct
file_operations
proc_crypto_ops
=
{
.
open
=
crypto_info_open
,
.
open
=
crypto_info_open
,
.
read
=
seq_read
,
.
read
=
seq_read
,
.
llseek
=
seq_lseek
,
.
llseek
=
seq_lseek
,
...
...
drivers/staging/silicom/bpctl_mod.c
浏览文件 @
75ef9de1
...
@@ -5803,7 +5803,7 @@ static long device_ioctl(struct file *file, /* see include/linux/fs.h */
...
@@ -5803,7 +5803,7 @@ static long device_ioctl(struct file *file, /* see include/linux/fs.h */
return
ret
;
return
ret
;
}
}
struct
file_operations
Fops
=
{
st
atic
const
st
ruct
file_operations
Fops
=
{
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
.
unlocked_ioctl
=
device_ioctl
,
.
unlocked_ioctl
=
device_ioctl
,
.
open
=
device_open
,
.
open
=
device_open
,
...
...
fs/nfsd/nfsctl.c
浏览文件 @
75ef9de1
...
@@ -177,7 +177,7 @@ static int export_features_open(struct inode *inode, struct file *file)
...
@@ -177,7 +177,7 @@ static int export_features_open(struct inode *inode, struct file *file)
return
single_open
(
file
,
export_features_show
,
NULL
);
return
single_open
(
file
,
export_features_show
,
NULL
);
}
}
static
struct
file_operations
export_features_operations
=
{
static
const
struct
file_operations
export_features_operations
=
{
.
open
=
export_features_open
,
.
open
=
export_features_open
,
.
read
=
seq_read
,
.
read
=
seq_read
,
.
llseek
=
seq_lseek
,
.
llseek
=
seq_lseek
,
...
@@ -196,7 +196,7 @@ static int supported_enctypes_open(struct inode *inode, struct file *file)
...
@@ -196,7 +196,7 @@ static int supported_enctypes_open(struct inode *inode, struct file *file)
return
single_open
(
file
,
supported_enctypes_show
,
NULL
);
return
single_open
(
file
,
supported_enctypes_show
,
NULL
);
}
}
static
struct
file_operations
supported_enctypes_ops
=
{
static
const
struct
file_operations
supported_enctypes_ops
=
{
.
open
=
supported_enctypes_open
,
.
open
=
supported_enctypes_open
,
.
read
=
seq_read
,
.
read
=
seq_read
,
.
llseek
=
seq_lseek
,
.
llseek
=
seq_lseek
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录