summaryrefslogtreecommitdiffstats
path: root/drivers/staging/lustre
diff options
context:
space:
mode:
authorPatrick Boettcher <patrick.boettcher@posteo.de>2015-08-10 10:25:09 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-08-14 18:46:02 -0700
commita8365826553dc5f3d0cd4e05211b752a6f951fc8 (patch)
treefcf0470eb8dcd0bfb51313f0c349134c2354a31a /drivers/staging/lustre
parent25bbe418f89bec661bcc0dfebcacd6705ed79de6 (diff)
downloadop-kernel-dev-a8365826553dc5f3d0cd4e05211b752a6f951fc8.zip
op-kernel-dev-a8365826553dc5f3d0cd4e05211b752a6f951fc8.tar.gz
staging: lustre-libcfs: make static-variable constant
This static can be made constant as it is never modified. Found during sparse-cleanup. Signed-off-by: Patrick Boettcher <patrick.boettcher@posteo.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/lustre')
-rw-r--r--drivers/staging/lustre/lustre/libcfs/module.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/lustre/lustre/libcfs/module.c b/drivers/staging/lustre/lustre/libcfs/module.c
index 663f25b..0128268 100644
--- a/drivers/staging/lustre/lustre/libcfs/module.c
+++ b/drivers/staging/lustre/lustre/libcfs/module.c
@@ -707,7 +707,7 @@ struct lnet_debugfs_symlink_def {
char *target;
};
-static struct lnet_debugfs_symlink_def lnet_debugfs_symlinks[] = {
+static const struct lnet_debugfs_symlink_def lnet_debugfs_symlinks[] = {
{ "console_ratelimit",
"/sys/module/libcfs/parameters/libcfs_console_ratelimit"},
{ "debug_path",
@@ -762,7 +762,7 @@ static void insert_debugfs(void)
{
struct ctl_table *table;
struct dentry *entry;
- struct lnet_debugfs_symlink_def *symlinks;
+ const struct lnet_debugfs_symlink_def *symlinks;
if (lnet_debugfs_root == NULL)
lnet_debugfs_root = debugfs_create_dir("lnet", NULL);
OpenPOWER on IntegriCloud