mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 13:49:24 -04:00
staging: lustre: constify lprocfs_generic_fops structure
lprocfs_generic_fops, of type struct file_operations, is never modified, so declare it as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
495ea0d993
commit
a1cd3dd535
1 changed files with 1 additions and 1 deletions
|
|
@ -315,7 +315,7 @@ struct dentry *ldebugfs_add_simple(struct dentry *root,
|
|||
}
|
||||
EXPORT_SYMBOL_GPL(ldebugfs_add_simple);
|
||||
|
||||
static struct file_operations lprocfs_generic_fops = { };
|
||||
static const struct file_operations lprocfs_generic_fops = { };
|
||||
|
||||
int ldebugfs_add_vars(struct dentry *parent,
|
||||
struct lprocfs_vars *list,
|
||||
|
|
|
|||
Loading…
Reference in a new issue