diff options
-rw-r--r-- | arch/powerpc/kvm/book3s_64_mmu_hv.c | 2 | ||||
-rw-r--r-- | arch/powerpc/kvm/book3s_64_vio.c | 2 | ||||
-rw-r--r-- | arch/powerpc/kvm/book3s_hv.c | 2 | ||||
-rw-r--r-- | drivers/media/rc/ir-lirc-codec.c | 2 | ||||
-rw-r--r-- | drivers/media/rc/lirc_dev.c | 2 | ||||
-rw-r--r-- | drivers/s390/cio/qdio_debug.c | 2 | ||||
-rw-r--r-- | drivers/scsi/qla2xxx/qla_os.c | 2 | ||||
-rw-r--r-- | drivers/staging/csr/drv.c | 4 | ||||
-rw-r--r-- | drivers/staging/dgrp/dgrp_specproc.c | 6 | ||||
-rw-r--r-- | drivers/staging/ft1000/ft1000-usb/ft1000_debug.c | 2 | ||||
-rw-r--r-- | drivers/staging/rtl8192u/ieee80211/proc.c | 2 | ||||
-rw-r--r-- | drivers/staging/silicom/bpctl_mod.c | 2 | ||||
-rw-r--r-- | fs/nfsd/nfsctl.c | 4 |
13 files changed, 17 insertions, 17 deletions
diff --git a/arch/powerpc/kvm/book3s_64_mmu_hv.c b/arch/powerpc/kvm/book3s_64_mmu_hv.c index 8cc18abd6dde..da98e26f6e45 100644 --- a/arch/powerpc/kvm/book3s_64_mmu_hv.c +++ b/arch/powerpc/kvm/book3s_64_mmu_hv.c | |||
@@ -1467,7 +1467,7 @@ static int kvm_htab_release(struct inode *inode, struct file *filp) | |||
1467 | return 0; | 1467 | return 0; |
1468 | } | 1468 | } |
1469 | 1469 | ||
1470 | static struct file_operations kvm_htab_fops = { | 1470 | static const struct file_operations kvm_htab_fops = { |
1471 | .read = kvm_htab_read, | 1471 | .read = kvm_htab_read, |
1472 | .write = kvm_htab_write, | 1472 | .write = kvm_htab_write, |
1473 | .llseek = default_llseek, | 1473 | .llseek = default_llseek, |
diff --git a/arch/powerpc/kvm/book3s_64_vio.c b/arch/powerpc/kvm/book3s_64_vio.c index 72ffc899c082..b2d3f3b2de72 100644 --- a/arch/powerpc/kvm/book3s_64_vio.c +++ b/arch/powerpc/kvm/book3s_64_vio.c | |||
@@ -92,7 +92,7 @@ static int kvm_spapr_tce_release(struct inode *inode, struct file *filp) | |||
92 | return 0; | 92 | return 0; |
93 | } | 93 | } |
94 | 94 | ||
95 | static struct file_operations kvm_spapr_tce_fops = { | 95 | static const struct file_operations kvm_spapr_tce_fops = { |
96 | .mmap = kvm_spapr_tce_mmap, | 96 | .mmap = kvm_spapr_tce_mmap, |
97 | .release = kvm_spapr_tce_release, | 97 | .release = kvm_spapr_tce_release, |
98 | }; | 98 | }; |
diff --git a/arch/powerpc/kvm/book3s_hv.c b/arch/powerpc/kvm/book3s_hv.c index 80dcc53a1aba..b62bd1b97c68 100644 --- a/arch/powerpc/kvm/book3s_hv.c +++ b/arch/powerpc/kvm/book3s_hv.c | |||
@@ -1483,7 +1483,7 @@ static int kvm_rma_release(struct inode *inode, struct file *filp) | |||
1483 | return 0; | 1483 | return 0; |
1484 | } | 1484 | } |
1485 | 1485 | ||
1486 | static struct file_operations kvm_rma_fops = { | 1486 | static const struct file_operations kvm_rma_fops = { |
1487 | .mmap = kvm_rma_mmap, | 1487 | .mmap = kvm_rma_mmap, |
1488 | .release = kvm_rma_release, | 1488 | .release = kvm_rma_release, |
1489 | }; | 1489 | }; |
diff --git a/drivers/media/rc/ir-lirc-codec.c b/drivers/media/rc/ir-lirc-codec.c index 9945e5e7f61a..8ee080ef2f2c 100644 --- a/drivers/media/rc/ir-lirc-codec.c +++ b/drivers/media/rc/ir-lirc-codec.c | |||
@@ -307,7 +307,7 @@ static void ir_lirc_close(void *data) | |||
307 | return; | 307 | return; |
308 | } | 308 | } |
309 | 309 | ||
310 | static struct file_operations lirc_fops = { | 310 | static const struct file_operations lirc_fops = { |
311 | .owner = THIS_MODULE, | 311 | .owner = THIS_MODULE, |
312 | .write = ir_lirc_transmit_ir, | 312 | .write = ir_lirc_transmit_ir, |
313 | .unlocked_ioctl = ir_lirc_ioctl, | 313 | .unlocked_ioctl = ir_lirc_ioctl, |
diff --git a/drivers/media/rc/lirc_dev.c b/drivers/media/rc/lirc_dev.c index 5247d94fea29..8dc057b273f2 100644 --- a/drivers/media/rc/lirc_dev.c +++ b/drivers/media/rc/lirc_dev.c | |||
@@ -152,7 +152,7 @@ static int lirc_thread(void *irctl) | |||
152 | } | 152 | } |
153 | 153 | ||
154 | 154 | ||
155 | static struct file_operations lirc_dev_fops = { | 155 | static const struct file_operations lirc_dev_fops = { |
156 | .owner = THIS_MODULE, | 156 | .owner = THIS_MODULE, |
157 | .read = lirc_dev_fop_read, | 157 | .read = lirc_dev_fop_read, |
158 | .write = lirc_dev_fop_write, | 158 | .write = lirc_dev_fop_write, |
diff --git a/drivers/s390/cio/qdio_debug.c b/drivers/s390/cio/qdio_debug.c index ccaae9d63d27..4221b02085ad 100644 --- a/drivers/s390/cio/qdio_debug.c +++ b/drivers/s390/cio/qdio_debug.c | |||
@@ -224,7 +224,7 @@ static int qperf_seq_open(struct inode *inode, struct file *filp) | |||
224 | file_inode(filp)->i_private); | 224 | file_inode(filp)->i_private); |
225 | } | 225 | } |
226 | 226 | ||
227 | static struct file_operations debugfs_perf_fops = { | 227 | static const struct file_operations debugfs_perf_fops = { |
228 | .owner = THIS_MODULE, | 228 | .owner = THIS_MODULE, |
229 | .open = qperf_seq_open, | 229 | .open = qperf_seq_open, |
230 | .read = seq_read, | 230 | .read = seq_read, |
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c index 2c6dd3dfe0f4..ccb5e6404d09 100644 --- a/drivers/scsi/qla2xxx/qla_os.c +++ b/drivers/scsi/qla2xxx/qla_os.c | |||
@@ -5351,7 +5351,7 @@ static struct pci_driver qla2xxx_pci_driver = { | |||
5351 | .err_handler = &qla2xxx_err_handler, | 5351 | .err_handler = &qla2xxx_err_handler, |
5352 | }; | 5352 | }; |
5353 | 5353 | ||
5354 | static struct file_operations apidev_fops = { | 5354 | static const struct file_operations apidev_fops = { |
5355 | .owner = THIS_MODULE, | 5355 | .owner = THIS_MODULE, |
5356 | .llseek = noop_llseek, | 5356 | .llseek = noop_llseek, |
5357 | }; | 5357 | }; |
diff --git a/drivers/staging/csr/drv.c b/drivers/staging/csr/drv.c index 3bd52fdeac3b..33742ba13779 100644 --- a/drivers/staging/csr/drv.c +++ b/drivers/staging/csr/drv.c | |||
@@ -1941,7 +1941,7 @@ uf_sme_queue_message(unifi_priv_t *priv, u8 *buffer, int length) | |||
1941 | * | 1941 | * |
1942 | **************************************************************************** | 1942 | **************************************************************************** |
1943 | */ | 1943 | */ |
1944 | static struct file_operations unifi_fops = { | 1944 | static const struct file_operations unifi_fops = { |
1945 | .owner = THIS_MODULE, | 1945 | .owner = THIS_MODULE, |
1946 | .open = unifi_open, | 1946 | .open = unifi_open, |
1947 | .release = unifi_release, | 1947 | .release = unifi_release, |
@@ -2041,7 +2041,7 @@ void uf_destroy_device_nodes(unifi_priv_t *priv) | |||
2041 | * ---------------------------------------------------------------- | 2041 | * ---------------------------------------------------------------- |
2042 | */ | 2042 | */ |
2043 | static int | 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 | int ret; | 2046 | int ret; |
2047 | 2047 | ||
diff --git a/drivers/staging/dgrp/dgrp_specproc.c b/drivers/staging/dgrp/dgrp_specproc.c index 99c993b13378..b990b2686ba9 100644 --- a/drivers/staging/dgrp/dgrp_specproc.c +++ b/drivers/staging/dgrp/dgrp_specproc.c | |||
@@ -63,7 +63,7 @@ static int dgrp_nodeinfo_proc_open(struct inode *inode, struct file *file); | |||
63 | static int dgrp_info_proc_open(struct inode *inode, struct file *file); | 63 | static int dgrp_info_proc_open(struct inode *inode, struct file *file); |
64 | static int dgrp_config_proc_open(struct inode *inode, struct file *file); | 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 | .owner = THIS_MODULE, | 67 | .owner = THIS_MODULE, |
68 | .open = dgrp_config_proc_open, | 68 | .open = dgrp_config_proc_open, |
69 | .read = seq_read, | 69 | .read = seq_read, |
@@ -72,7 +72,7 @@ static struct file_operations config_proc_file_ops = { | |||
72 | .write = dgrp_config_proc_write, | 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 | .owner = THIS_MODULE, | 76 | .owner = THIS_MODULE, |
77 | .open = dgrp_info_proc_open, | 77 | .open = dgrp_info_proc_open, |
78 | .read = seq_read, | 78 | .read = seq_read, |
@@ -80,7 +80,7 @@ static struct file_operations info_proc_file_ops = { | |||
80 | .release = single_release, | 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 | .owner = THIS_MODULE, | 84 | .owner = THIS_MODULE, |
85 | .open = dgrp_nodeinfo_proc_open, | 85 | .open = dgrp_nodeinfo_proc_open, |
86 | .read = seq_read, | 86 | .read = seq_read, |
diff --git a/drivers/staging/ft1000/ft1000-usb/ft1000_debug.c b/drivers/staging/ft1000/ft1000-usb/ft1000_debug.c index 297389e8c608..3251d2e073b5 100644 --- a/drivers/staging/ft1000/ft1000-usb/ft1000_debug.c +++ b/drivers/staging/ft1000/ft1000-usb/ft1000_debug.c | |||
@@ -55,7 +55,7 @@ int numofmsgbuf = 0; | |||
55 | // | 55 | // |
56 | // Table of entry-point routines for char device | 56 | // Table of entry-point routines for char device |
57 | // | 57 | // |
58 | static struct file_operations ft1000fops = | 58 | static const struct file_operations ft1000fops = |
59 | { | 59 | { |
60 | .unlocked_ioctl = ft1000_ioctl, | 60 | .unlocked_ioctl = ft1000_ioctl, |
61 | .poll = ft1000_poll_dev, | 61 | .poll = ft1000_poll_dev, |
diff --git a/drivers/staging/rtl8192u/ieee80211/proc.c b/drivers/staging/rtl8192u/ieee80211/proc.c index 54026a412ca4..c426dfdd9fdd 100644 --- a/drivers/staging/rtl8192u/ieee80211/proc.c +++ b/drivers/staging/rtl8192u/ieee80211/proc.c | |||
@@ -99,7 +99,7 @@ static int crypto_info_open(struct inode *inode, struct file *file) | |||
99 | return seq_open(file, &crypto_seq_ops); | 99 | return seq_open(file, &crypto_seq_ops); |
100 | } | 100 | } |
101 | 101 | ||
102 | static struct file_operations proc_crypto_ops = { | 102 | static const struct file_operations proc_crypto_ops = { |
103 | .open = crypto_info_open, | 103 | .open = crypto_info_open, |
104 | .read = seq_read, | 104 | .read = seq_read, |
105 | .llseek = seq_lseek, | 105 | .llseek = seq_lseek, |
diff --git a/drivers/staging/silicom/bpctl_mod.c b/drivers/staging/silicom/bpctl_mod.c index e2da0fb3f98e..2cfa800e248c 100644 --- a/drivers/staging/silicom/bpctl_mod.c +++ b/drivers/staging/silicom/bpctl_mod.c | |||
@@ -5803,7 +5803,7 @@ static long device_ioctl(struct file *file, /* see include/linux/fs.h */ | |||
5803 | return ret; | 5803 | return ret; |
5804 | } | 5804 | } |
5805 | 5805 | ||
5806 | struct file_operations Fops = { | 5806 | static const struct file_operations Fops = { |
5807 | .owner = THIS_MODULE, | 5807 | .owner = THIS_MODULE, |
5808 | .unlocked_ioctl = device_ioctl, | 5808 | .unlocked_ioctl = device_ioctl, |
5809 | .open = device_open, | 5809 | .open = device_open, |
diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c index f33455b4d957..5bee0313dffd 100644 --- a/fs/nfsd/nfsctl.c +++ b/fs/nfsd/nfsctl.c | |||
@@ -177,7 +177,7 @@ static int export_features_open(struct inode *inode, struct file *file) | |||
177 | return single_open(file, export_features_show, NULL); | 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 | .open = export_features_open, | 181 | .open = export_features_open, |
182 | .read = seq_read, | 182 | .read = seq_read, |
183 | .llseek = seq_lseek, | 183 | .llseek = seq_lseek, |
@@ -196,7 +196,7 @@ static int supported_enctypes_open(struct inode *inode, struct file *file) | |||
196 | return single_open(file, supported_enctypes_show, NULL); | 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 | .open = supported_enctypes_open, | 200 | .open = supported_enctypes_open, |
201 | .read = seq_read, | 201 | .read = seq_read, |
202 | .llseek = seq_lseek, | 202 | .llseek = seq_lseek, |