Commit 75ef9de1267ba171ecefafca35758e2be0db10dc
1 parent
c10c062cad
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
constify a bunch of struct file_operations instances
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Showing 13 changed files with 17 additions and 17 deletions Side-by-side Diff
- arch/powerpc/kvm/book3s_64_mmu_hv.c
- arch/powerpc/kvm/book3s_64_vio.c
- arch/powerpc/kvm/book3s_hv.c
- drivers/media/rc/ir-lirc-codec.c
- drivers/media/rc/lirc_dev.c
- drivers/s390/cio/qdio_debug.c
- drivers/scsi/qla2xxx/qla_os.c
- drivers/staging/csr/drv.c
- drivers/staging/dgrp/dgrp_specproc.c
- drivers/staging/ft1000/ft1000-usb/ft1000_debug.c
- drivers/staging/rtl8192u/ieee80211/proc.c
- drivers/staging/silicom/bpctl_mod.c
- fs/nfsd/nfsctl.c
arch/powerpc/kvm/book3s_64_mmu_hv.c
arch/powerpc/kvm/book3s_64_vio.c
arch/powerpc/kvm/book3s_hv.c
drivers/media/rc/ir-lirc-codec.c
drivers/media/rc/lirc_dev.c
drivers/s390/cio/qdio_debug.c
drivers/scsi/qla2xxx/qla_os.c
drivers/staging/csr/drv.c
... | ... | @@ -1941,7 +1941,7 @@ |
1941 | 1941 | * |
1942 | 1942 | **************************************************************************** |
1943 | 1943 | */ |
1944 | -static struct file_operations unifi_fops = { | |
1944 | +static const struct file_operations unifi_fops = { | |
1945 | 1945 | .owner = THIS_MODULE, |
1946 | 1946 | .open = unifi_open, |
1947 | 1947 | .release = unifi_release, |
... | ... | @@ -2041,7 +2041,7 @@ |
2041 | 2041 | * ---------------------------------------------------------------- |
2042 | 2042 | */ |
2043 | 2043 | static int |
2044 | -uf_create_debug_device(struct file_operations *fops) | |
2044 | +uf_create_debug_device(const struct file_operations *fops) | |
2045 | 2045 | { |
2046 | 2046 | int ret; |
2047 | 2047 |
drivers/staging/dgrp/dgrp_specproc.c
... | ... | @@ -63,7 +63,7 @@ |
63 | 63 | static int dgrp_info_proc_open(struct inode *inode, struct file *file); |
64 | 64 | static int dgrp_config_proc_open(struct inode *inode, struct file *file); |
65 | 65 | |
66 | -static struct file_operations config_proc_file_ops = { | |
66 | +static const struct file_operations config_proc_file_ops = { | |
67 | 67 | .owner = THIS_MODULE, |
68 | 68 | .open = dgrp_config_proc_open, |
69 | 69 | .read = seq_read, |
... | ... | @@ -72,7 +72,7 @@ |
72 | 72 | .write = dgrp_config_proc_write, |
73 | 73 | }; |
74 | 74 | |
75 | -static struct file_operations info_proc_file_ops = { | |
75 | +static const struct file_operations info_proc_file_ops = { | |
76 | 76 | .owner = THIS_MODULE, |
77 | 77 | .open = dgrp_info_proc_open, |
78 | 78 | .read = seq_read, |
... | ... | @@ -80,7 +80,7 @@ |
80 | 80 | .release = single_release, |
81 | 81 | }; |
82 | 82 | |
83 | -static struct file_operations nodeinfo_proc_file_ops = { | |
83 | +static const struct file_operations nodeinfo_proc_file_ops = { | |
84 | 84 | .owner = THIS_MODULE, |
85 | 85 | .open = dgrp_nodeinfo_proc_open, |
86 | 86 | .read = seq_read, |
drivers/staging/ft1000/ft1000-usb/ft1000_debug.c
drivers/staging/rtl8192u/ieee80211/proc.c
drivers/staging/silicom/bpctl_mod.c
fs/nfsd/nfsctl.c
... | ... | @@ -177,7 +177,7 @@ |
177 | 177 | return single_open(file, export_features_show, NULL); |
178 | 178 | } |
179 | 179 | |
180 | -static struct file_operations export_features_operations = { | |
180 | +static const struct file_operations export_features_operations = { | |
181 | 181 | .open = export_features_open, |
182 | 182 | .read = seq_read, |
183 | 183 | .llseek = seq_lseek, |
... | ... | @@ -196,7 +196,7 @@ |
196 | 196 | return single_open(file, supported_enctypes_show, NULL); |
197 | 197 | } |
198 | 198 | |
199 | -static struct file_operations supported_enctypes_ops = { | |
199 | +static const struct file_operations supported_enctypes_ops = { | |
200 | 200 | .open = supported_enctypes_open, |
201 | 201 | .read = seq_read, |
202 | 202 | .llseek = seq_lseek, |