summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorM. Vefa Bicakci <m.v.b@runbox.com>2016-02-28 14:26:21 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-03-02 03:28:29 (GMT)
commitc8c21f3b48dfeb1922cdbc08a3691ebf87173adc (patch)
tree9ce02b8c0234b6cf536a0965ff67a1656b39f8a5
parent0daec763260e4f0d8038512b72971ddbcf1c63a1 (diff)
downloadlinux-c8c21f3b48dfeb1922cdbc08a3691ebf87173adc.tar.xz
staging: lustre: Use const static file_operations struct
This commit corrects the following sparse warning regarding a file_operations structure being non-static and constifies the structure in question as well. warning: symbol 'lprocfs_stats_seq_fops' was not declared. Should it be static? Signed-off-by: M. Vefa Bicakci <m.v.b@runbox.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-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 3c895be..7c28755 100644
--- a/drivers/staging/lustre/lustre/obdclass/lprocfs_status.c
+++ b/drivers/staging/lustre/lustre/obdclass/lprocfs_status.c
@@ -1197,7 +1197,7 @@ static int lprocfs_stats_seq_open(struct inode *inode, struct file *file)
return 0;
}
-struct file_operations lprocfs_stats_seq_fops = {
+static const struct file_operations lprocfs_stats_seq_fops = {
.owner = THIS_MODULE,
.open = lprocfs_stats_seq_open,
.read = seq_read,