Commit d6e7a2fe authored by Julia Lawall's avatar Julia Lawall Committed by Greg Kroah-Hartman

staging: lustre: constify lmv_proc_target_fops structure

lmv_proc_target_fops, of type struct file_operations, is never modified, so
declare it as const.

Done with the help of Coccinelle.
Signed-off-by: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent faac7a8d
...@@ -164,6 +164,6 @@ struct lmv_tgt_desc ...@@ -164,6 +164,6 @@ struct lmv_tgt_desc
/* lproc_lmv.c */ /* lproc_lmv.c */
void lprocfs_lmv_init_vars(struct lprocfs_static_vars *lvars); void lprocfs_lmv_init_vars(struct lprocfs_static_vars *lvars);
extern struct file_operations lmv_proc_target_fops; extern const struct file_operations lmv_proc_target_fops;
#endif #endif
...@@ -202,7 +202,7 @@ static struct lprocfs_vars lprocfs_lmv_obd_vars[] = { ...@@ -202,7 +202,7 @@ static struct lprocfs_vars lprocfs_lmv_obd_vars[] = {
{ NULL } { NULL }
}; };
struct file_operations lmv_proc_target_fops = { const struct file_operations lmv_proc_target_fops = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.open = lmv_target_seq_open, .open = lmv_target_seq_open,
.read = seq_read, .read = seq_read,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment