procfs: constify function pointer tables
Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> Acked-by: Mike Frysinger <vapier@gentoo.org> Acked-By: David Howells <dhowells@redhat.com> Acked-by: Bryan Wu <bryan.wu@analog.com> Acked-by: Jesper Nilsson <jesper.nilsson@axis.com> Cc: <linux-arch@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
ec26e11740
commit
03a44825be
@ -216,7 +216,7 @@ static void m_stop(struct seq_file *m, void *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, void *v)
|
||||
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, void *v)
|
||||
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(struct seq_file *m, void *v)
|
||||
return 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,
|
||||
|
Reference in New Issue
Block a user