rcu/tree: Make struct kernel_param_ops definitions const
authorJoe Perches <joe@perches.com>
Sun, 4 Oct 2020 00:18:08 +0000 (17:18 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Fri, 20 Nov 2020 03:37:17 +0000 (19:37 -0800)
These should be const, so make it so.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/tree.c

index e4d6d0b..5f458e4 100644 (file)
@@ -546,12 +546,12 @@ static int param_set_next_fqs_jiffies(const char *val, const struct kernel_param
        return ret;
 }
 
-static struct kernel_param_ops first_fqs_jiffies_ops = {
+static const struct kernel_param_ops first_fqs_jiffies_ops = {
        .set = param_set_first_fqs_jiffies,
        .get = param_get_ulong,
 };
 
-static struct kernel_param_ops next_fqs_jiffies_ops = {
+static const struct kernel_param_ops next_fqs_jiffies_ops = {
        .set = param_set_next_fqs_jiffies,
        .get = param_get_ulong,
 };