Commit 116214d4 authored by Emil Velikov's avatar Emil Velikov Committed by Greg Kroah-Hartman

sparc64: 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: "David S. Miller" <davem@davemloft.net>
Cc: sparclinux@vger.kernel.org
Acked-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarEmil Velikov <emil.l.velikov@gmail.com>
Link: https://lore.kernel.org/r/20200513214351.2138580-7-emil.l.velikov@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent fff134c2
...@@ -313,7 +313,7 @@ static void sysrq_handle_globreg(int key) ...@@ -313,7 +313,7 @@ static void sysrq_handle_globreg(int key)
trigger_all_cpu_backtrace(); trigger_all_cpu_backtrace();
} }
static struct sysrq_key_op sparc_globalreg_op = { static const struct sysrq_key_op sparc_globalreg_op = {
.handler = sysrq_handle_globreg, .handler = sysrq_handle_globreg,
.help_msg = "global-regs(y)", .help_msg = "global-regs(y)",
.action_msg = "Show Global CPU Regs", .action_msg = "Show Global CPU Regs",
...@@ -388,7 +388,7 @@ static void sysrq_handle_globpmu(int key) ...@@ -388,7 +388,7 @@ static void sysrq_handle_globpmu(int key)
pmu_snapshot_all_cpus(); pmu_snapshot_all_cpus();
} }
static struct sysrq_key_op sparc_globalpmu_op = { static const struct sysrq_key_op sparc_globalpmu_op = {
.handler = sysrq_handle_globpmu, .handler = sysrq_handle_globpmu,
.help_msg = "global-pmu(x)", .help_msg = "global-pmu(x)",
.action_msg = "Show Global PMU Regs", .action_msg = "Show Global PMU Regs",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment