From: Joe Perches Date: Sun, 4 Oct 2020 00:18:08 +0000 (-0700) Subject: rcu/tree: Make struct kernel_param_ops definitions const X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=7c47ee5aa00817d8b10f415b4a92d5fb3ac35273;p=linux.git rcu/tree: Make struct kernel_param_ops definitions const These should be const, so make it so. Signed-off-by: Joe Perches Signed-off-by: Paul E. McKenney --- diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c index e4d6d0b1b8535..5f458e4efc958 100644 --- a/kernel/rcu/tree.c +++ b/kernel/rcu/tree.c @@ -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, };