procfs: constify function pointer tables
Subsystems (8)
Generic include/asm header files Proc filesystem Memory mapping PA-RISC architecture +4 more subsystems
[email protected]
maintainerPATCH 175/233 procfs: constify function pointer tables
From: Jan Engelhardt <[email protected]>
Signed-off-by Jan Engelhardt <[email protected]>
Acked-by Mike Frysinger <[email protected]>
Acked-by David Howells <[email protected]>
Acked-by Bryan Wu <[email protected]>
Acked-by Jesper Nilsson <[email protected]>
Cc <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
arch/alpha/kernel/setup.c | 2 +- arch/blackfin/kernel/setup.c | 2 +- arch/cris/kernel/setup.c | 2 +- arch/frv/kernel/setup.c | 2 +- arch/h8300/kernel/setup.c | 2 +- arch/m32r/kernel/setup.c | 2 +- arch/m68k/kernel/setup.c | 2 +- arch/m68knommu/kernel/setup.c | 2 +- arch/parisc/kernel/setup.c | 2 +- arch/ppc/kernel/setup.c | 2 +- arch/v850/kernel/procfs.c | 2 +- arch/xtensa/kernel/setup.c | 2 +- fs/proc/base.c | 4 ++-- fs/proc/nommu.c | 2 +- fs/proc/proc_misc.c | 22 +++++++++++----------- fs/proc/proc_sysctl.c | 4 ++-- fs/proc/proc_tty.c | 2 +- fs/proc/task_mmu.c | 8 ++++---- fs/proc/task_nommu.c | 2 +- 19 files changed, 34 insertions(+), 34 deletions(-)
arch/alpha/kernel/setup.c renamed from arch/alpha/kernel/setup.c~procfs-constify-function-pointer-tables +1 -1
@@ -1471,7 +1471,7 @@ c_stop(struct seq_file *f, void *v) { } -struct seq_operations cpuinfo_op = { +const struct seq_operations cpuinfo_op = { .start = c_start, .next = c_next, .stop = c_stop,
arch/blackfin/kernel/setup.c renamed from arch/blackfin/kernel/setup.c~procfs-constify-function-pointer-tables +1 -1
@@ -700,7 +700,7 @@ static void c_stop(struct seq_file *m, v { } -struct seq_operations cpuinfo_op = { +const struct seq_operations cpuinfo_op = { .start = c_start, .next = c_next, .stop = c_stop,
arch/cris/kernel/setup.c renamed from arch/cris/kernel/setup.c~procfs-constify-function-pointer-tables +1 -1
@@ -180,7 +180,7 @@ static void c_stop(struct seq_file *m, vextern int show_cpuinfo (struct seq_file *m,void *v); -struct seq_operations cpuinfo_op = { +const struct seq_operations cpuinfo_op = { .start = c_start, .next = c_next, .stop = c_stop,
arch/frv/kernel/setup.c renamed from arch/frv/kernel/setup.c~procfs-constify-function-pointer-tables +1 -1
@@ -1113,7 +1113,7 @@ static void c_stop(struct seq_file *m, v { } -struct seq_operations cpuinfo_op = { +const struct seq_operations cpuinfo_op = { .start = c_start, .next = c_next, .stop = c_stop,
arch/h8300/kernel/setup.c renamed from arch/h8300/kernel/setup.c~procfs-constify-function-pointer-tables +1 -1
@@ -236,7 +236,7 @@ static void c_stop(struct seq_file *m, v { } -struct seq_operations cpuinfo_op = { +const struct seq_operations cpuinfo_op = { .start = c_start, .next = c_next, .stop = c_stop,
arch/m32r/kernel/setup.c renamed from arch/m32r/kernel/setup.c~procfs-constify-function-pointer-tables +1 -1
@@ -369,7 +369,7 @@ static void c_stop(struct seq_file *m, v { } -struct seq_operations cpuinfo_op = { +const struct seq_operations cpuinfo_op = { .start = c_start, .next = c_next, .stop = c_stop,
arch/m68k/kernel/setup.c renamed from arch/m68k/kernel/setup.c~procfs-constify-function-pointer-tables +1 -1
@@ -450,7 +450,7 @@ static void *c_next(struct seq_file *m,static void c_stop (struct seq_file *m,void *v) { } -struct seq_operations cpuinfo_op = { +const struct seq_operations cpuinfo_op = { .start = c_start, .next = c_next, .stop = c_stop,
arch/m68knommu/kernel/setup.c renamed from arch/m68knommu/kernel/setup.c~procfs-constify-function-pointer-tables +1 -1
@@ -260,7 +260,7 @@ static void c_stop(struct seq_file *m, v { } -struct seq_operations cpuinfo_op = { +const struct seq_operations cpuinfo_op = { .start = c_start, .next = c_next, .stop = c_stop,
arch/parisc/kernel/setup.c renamed from arch/parisc/kernel/setup.c~procfs-constify-function-pointer-tables +1 -1
@@ -190,7 +190,7 @@ c_stop (struct seq_file *m, void *v) { } -struct seq_operations cpuinfo_op = { +const struct seq_operations cpuinfo_op = { .start = c_start, .next = c_next, .stop = c_stop,
arch/ppc/kernel/setup.c renamed from arch/ppc/kernel/setup.c~procfs-constify-function-pointer-tables +1 -1
@@ -275,7 +275,7 @@ static void c_stop(struct seq_file *m, v { } -struct seq_operations cpuinfo_op = { +const struct seq_operations cpuinfo_op = { .start =c_start, .next = c_next, .stop = c_stop,
arch/v850/kernel/procfs.c renamed from arch/v850/kernel/procfs.c~procfs-constify-function-pointer-tables +1 -1
@@ -59,7 +59,7 @@ static void cpuinfo_stop (struct seq_fil { } -struct seq_operations cpuinfo_op = { +const struct seq_operations cpuinfo_op = { .start = cpuinfo_start, .next = cpuinfo_next, .stop = cpuinfo_stop,
arch/xtensa/kernel/setup.c renamed from arch/xtensa/kernel/setup.c~procfs-constify-function-pointer-tables +1 -1
@@ -469,7 +469,7 @@ c_stop(struct seq_file *f, void *v) { } -struct seq_operations cpuinfo_op = +const struct seq_operations cpuinfo_op = { start: c_start, next: c_next,
fs/proc/base.c renamed from fs/proc/base.c~procfs-constify-function-pointer-tables +2 -2
@@ -506,7 +506,7 @@ static const struct inode_operations pro .setattr = proc_setattr, }; -extern struct seq_operations mounts_op; +extern const struct seq_operations mounts_op;struct proc_mounts {struct seq_file m;int event;
@@ -585,7 +585,7 @@ static const struct file_operations proc .poll = mounts_poll, }; -extern struct seq_operations mountstats_op; +extern const struct seq_operations mountstats_op;static int mountstats_open (struct inode *inode,struct file *file) {int ret =seq_open (file, &mountstats_op);
fs/proc/nommu.c renamed from fs/proc/nommu.c~procfs-constify-function-pointer-tables +1 -1
@@ -116,7 +116,7 @@ static void *nommu_vma_list_next(structreturn rb_next ((struct rb_node *) v); } -static struct seq_operations proc_nommu_vma_list_seqop = { +static const struct seq_operations proc_nommu_vma_list_seqop = { .start = nommu_vma_list_start, .next = nommu_vma_list_next, .stop = nommu_vma_list_stop,
fs/proc/proc_misc.c renamed from fs/proc/proc_misc.c~procfs-constify-function-pointer-tables +11 -11
@@ -222,7 +222,7 @@ static int meminfo_read_proc(char *page,#undef K } -extern struct seq_operations fragmentation_op; +extern const struct seq_operations fragmentation_op;static int fragmentation_open (struct inode *inode,struct file *file) { (void )inode;
@@ -236,7 +236,7 @@ static const struct file_operations frag .release = seq_release, }; -extern struct seq_operations pagetypeinfo_op; +extern const struct seq_operations pagetypeinfo_op;static int pagetypeinfo_open (struct inode *inode,struct file *file) {return seq_open (file, &pagetypeinfo_op);
@@ -249,7 +249,7 @@ static const struct file_operations page .release = seq_release, }; -extern struct seq_operations zoneinfo_op; +extern const struct seq_operations zoneinfo_op;static int zoneinfo_open (struct inode *inode,struct file *file) {return seq_open (file, &zoneinfo_op);
@@ -274,7 +274,7 @@ static int version_read_proc(char *page,return proc_calc_metrics (page, start, off, count, eof, len); } -extern struct seq_operations cpuinfo_op; +extern const struct seq_operations cpuinfo_op;static int cpuinfo_open (struct inode *inode,struct file *file) {return seq_open (file, &cpuinfo_op);
@@ -327,7 +327,7 @@ static void devinfo_stop(struct seq_file/* Nothing to do */ } -static struct seq_operations devinfo_ops = { +static const struct seq_operations devinfo_ops = { .start = devinfo_start, .next = devinfo_next, .stop = devinfo_stop,
@@ -346,7 +346,7 @@ static const struct file_operations proc .release = seq_release, }; -extern struct seq_operations vmstat_op; +extern const struct seq_operations vmstat_op;static int vmstat_open (struct inode *inode,struct file *file) {return seq_open (file, &vmstat_op);
@@ -377,7 +377,7 @@ static int stram_read_proc(char *page, c#endif #ifdef CONFIG_BLOCK -extern struct seq_operations partitions_op; +extern const struct seq_operations partitions_op;static int partitions_open (struct inode *inode,struct file *file) {return seq_open (file, &partitions_op);
@@ -389,7 +389,7 @@ static const struct file_operations proc .release = seq_release, }; -extern struct seq_operations diskstats_op; +extern const struct seq_operations diskstats_op;static int diskstats_open (struct inode *inode,struct file *file) {return seq_open (file, &diskstats_op);
@@ -403,7 +403,7 @@ static const struct file_operations proc#endif #ifdef CONFIG_MODULES -extern struct seq_operations modules_op; +extern const struct seq_operations modules_op;static int modules_open (struct inode *inode,struct file *file) {return seq_open (file, &modules_op);
@@ -430,7 +430,7 @@ static const struct file_operations proc };#ifdef CONFIG_DEBUG_SLAB_LEAK -extern struct seq_operations slabstats_op; +extern const struct seq_operations slabstats_op;static int slabstats_open (struct inode *inode,struct file *file) {unsigned long *n =kzalloc (PAGE_SIZE ,GFP_KERNEL );
@@ -604,7 +604,7 @@ static void int_seq_stop(struct seq_file } -static struct seq_operations int_seq_ops = { +static const struct seq_operations int_seq_ops = { .start = int_seq_start, .next = int_seq_next, .stop = int_seq_stop,
fs/proc/proc_sysctl.c renamed from fs/proc/proc_sysctl.c~procfs-constify-function-pointer-tables +2 -2
@@ -9,7 +9,7 @@static struct dentry_operations proc_sys_dentry_operations;static const struct file_operations proc_sys_file_operations; -static struct inode_operations proc_sys_inode_operations; +static const struct inode_operations proc_sys_inode_operations;static void proc_sys_refresh_inode (struct inode *inode,struct ctl_table *table) {
@@ -446,7 +446,7 @@ static const struct file_operations proc .readdir = proc_sys_readdir, }; -static struct inode_operations proc_sys_inode_operations = { +static const struct inode_operations proc_sys_inode_operations = { .lookup = proc_sys_lookup, .permission = proc_sys_permission, .setattr = proc_sys_setattr,
fs/proc/proc_tty.c renamed from fs/proc/proc_tty.c~procfs-constify-function-pointer-tables +1 -1
@@ -117,7 +117,7 @@ static void t_stop(struct seq_file *m, vmutex_unlock (&tty_mutex); } -static struct seq_operations tty_drivers_op = { +static const struct seq_operations tty_drivers_op = { .start = t_start, .next = t_next, .stop = t_stop,
fs/proc/task_mmu.c renamed from fs/proc/task_mmu.c~procfs-constify-function-pointer-tables +4 -4
@@ -216,7 +216,7 @@ static void m_stop(struct seq_file *m, v }static int do_maps_open (struct inode *inode,struct file *file, -struct seq_operations *ops) +const struct seq_operations *ops) {struct proc_maps_private *priv;int ret = -ENOMEM ;
@@ -299,7 +299,7 @@ static int show_map(struct seq_file *m,return 0 ; } -static struct seq_operations proc_pid_maps_op = { +static const struct seq_operations proc_pid_maps_op = { .start = m_start, .next = m_next, .stop = m_stop,
@@ -434,7 +434,7 @@ static int show_smap(struct seq_file *m,return ret; } -static struct seq_operations proc_pid_smaps_op = { +static const struct seq_operations proc_pid_smaps_op = { .start = m_start, .next = m_next, .stop = m_stop,
@@ -734,7 +734,7 @@ static int show_numa_map_checked(structreturn show_numa_map (m, v); } -static struct seq_operations proc_pid_numa_maps_op = { +static const struct seq_operations proc_pid_numa_maps_op = { .start = m_start, .next = m_next, .stop = m_stop,
fs/proc/task_nommu.c renamed from fs/proc/task_nommu.c~procfs-constify-function-pointer-tables +1 -1
@@ -198,7 +198,7 @@ static void *m_next(struct seq_file *m,return vml ? vml->next :NULL ; } -static struct seq_operations proc_pid_maps_ops = { +static const struct seq_operations proc_pid_maps_ops = { .start = m_start, .next = m_next, .stop = m_stop,
_