summaryrefslogtreecommitdiffstats
path: root/drivers/staging/lustre
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2016-08-28 23:38:27 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-09-01 17:29:21 +0200
commita1cd3dd535cbc1ff84935b73cee1a053bf19a210 (patch)
treeb075f231dde679cf4417cf0fb1fbed4eeefb85a3 /drivers/staging/lustre
parent495ea0d99355e550a120b706515d6be55d198ac2 (diff)
downloadblackbird-op-linux-a1cd3dd535cbc1ff84935b73cee1a053bf19a210.tar.gz
blackbird-op-linux-a1cd3dd535cbc1ff84935b73cee1a053bf19a210.zip
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>
Diffstat (limited to 'drivers/staging/lustre')
-rw-r--r--drivers/staging/lustre/lustre/obdclass/lprocfs_status.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/lustre/lustre/obdclass/lprocfs_status.c b/drivers/staging/lustre/lustre/obdclass/lprocfs_status.c
index 3d6da741ea47..be6b6af0c548 100644
--- a/drivers/staging/lustre/lustre/obdclass/lprocfs_status.c
+++ b/drivers/staging/lustre/lustre/obdclass/lprocfs_status.c
@@ -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,
OpenPOWER on IntegriCloud