Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

rcu: constify sysrq_key_op

With earlier commits, the API no longer discards the const-ness of the
sysrq_key_op. As such we can add the notation.

Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Jiri Slaby <jslaby@suse.com>
Cc: linux-kernel@vger.kernel.org
Cc: "Paul E. McKenney" <paulmck@kernel.org>
Cc: Josh Triplett <josh@joshtriplett.org>
Cc: rcu@vger.kernel.org
Reviewed-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://lore.kernel.org/r/20200513214351.2138580-11-emil.l.velikov@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Emil Velikov and committed by
Greg Kroah-Hartman
0ca650c4 6400b5a0

+1 -1
+1 -1
kernel/rcu/tree_stall.h
··· 729 729 show_rcu_gp_kthreads(); 730 730 } 731 731 732 - static struct sysrq_key_op sysrq_rcudump_op = { 732 + static const struct sysrq_key_op sysrq_rcudump_op = { 733 733 .handler = sysrq_show_rcu, 734 734 .help_msg = "show-rcu(y)", 735 735 .action_msg = "Show RCU tree",