Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

constify a bunch of struct file_operations instances

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Al Viro 75ef9de1 c10c062c

+17 -17
+1 -1
arch/powerpc/kvm/book3s_64_mmu_hv.c
··· 1467 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 1471 .read = kvm_htab_read, 1472 1472 .write = kvm_htab_write, 1473 1473 .llseek = default_llseek,
+1 -1
arch/powerpc/kvm/book3s_64_vio.c
··· 92 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 96 .mmap = kvm_spapr_tce_mmap, 97 97 .release = kvm_spapr_tce_release, 98 98 };
+1 -1
arch/powerpc/kvm/book3s_hv.c
··· 1483 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 1487 .mmap = kvm_rma_mmap, 1488 1488 .release = kvm_rma_release, 1489 1489 };
+1 -1
drivers/media/rc/ir-lirc-codec.c
··· 307 307 return; 308 308 } 309 309 310 - static struct file_operations lirc_fops = { 310 + static const struct file_operations lirc_fops = { 311 311 .owner = THIS_MODULE, 312 312 .write = ir_lirc_transmit_ir, 313 313 .unlocked_ioctl = ir_lirc_ioctl,
+1 -1
drivers/media/rc/lirc_dev.c
··· 152 152 } 153 153 154 154 155 - static struct file_operations lirc_dev_fops = { 155 + static const struct file_operations lirc_dev_fops = { 156 156 .owner = THIS_MODULE, 157 157 .read = lirc_dev_fop_read, 158 158 .write = lirc_dev_fop_write,
+1 -1
drivers/s390/cio/qdio_debug.c
··· 224 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 228 .owner = THIS_MODULE, 229 229 .open = qperf_seq_open, 230 230 .read = seq_read,
+1 -1
drivers/scsi/qla2xxx/qla_os.c
··· 5351 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 5355 .owner = THIS_MODULE, 5356 5356 .llseek = noop_llseek, 5357 5357 };
+2 -2
drivers/staging/csr/drv.c
··· 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 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
+3 -3
drivers/staging/dgrp/dgrp_specproc.c
··· 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 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 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,
+1 -1
drivers/staging/ft1000/ft1000-usb/ft1000_debug.c
··· 55 55 // 56 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 60 .unlocked_ioctl = ft1000_ioctl, 61 61 .poll = ft1000_poll_dev,
+1 -1
drivers/staging/rtl8192u/ieee80211/proc.c
··· 99 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 103 .open = crypto_info_open, 104 104 .read = seq_read, 105 105 .llseek = seq_lseek,
+1 -1
drivers/staging/silicom/bpctl_mod.c
··· 5803 5803 return ret; 5804 5804 } 5805 5805 5806 - struct file_operations Fops = { 5806 + static const struct file_operations Fops = { 5807 5807 .owner = THIS_MODULE, 5808 5808 .unlocked_ioctl = device_ioctl, 5809 5809 .open = device_open,
+2 -2
fs/nfsd/nfsctl.c
··· 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 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,