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
@ -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_sys_file_operations = {
|
||||
.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,
|
||||
|
Reference in New Issue
Block a user