aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rcu
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2020-10-03 17:18:08 -0700
committerPaul E. McKenney <paulmck@kernel.org>2020-11-19 19:37:17 -0800
commit7c47ee5aa00817d8b10f415b4a92d5fb3ac35273 (patch)
tree665675cbbbcf0f14dcff596e43dd4f2491dc41cc /kernel/rcu
parentrcu/tree: Add a warning if CPU being onlined did not report QS already (diff)
downloadlinux-dev-7c47ee5aa00817d8b10f415b4a92d5fb3ac35273.tar.xz
linux-dev-7c47ee5aa00817d8b10f415b4a92d5fb3ac35273.zip
rcu/tree: Make struct kernel_param_ops definitions const
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>
Diffstat (limited to 'kernel/rcu')
-rw-r--r--kernel/rcu/tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c
index e4d6d0b1b853..5f458e4efc95 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,
};