From: Patrick Boettcher Date: Mon, 10 Aug 2015 08:25:09 +0000 (+0200) Subject: staging: lustre-libcfs: make static-variable constant X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a8365826553dc5f3d0cd4e05211b752a6f951fc8;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/lustre/lustre/libcfs/module.c b/drivers/staging/lustre/lustre/libcfs/module.c index 663f25bf5df8..0128268f0251 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);