Skip to content

Commit f95850e

Browse files
evelikovgregkh
authored andcommitted
alpha: 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: Richard Henderson <rth@twiddle.net> Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru> Cc: Matt Turner <mattst88@gmail.com> Cc: linux-alpha@vger.kernel.org Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Link: https://lore.kernel.org/r/20200513214351.2138580-4-emil.l.velikov@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 7fffe31 commit f95850e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/alpha/kernel/setup.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ register_cpus(void)
431431
arch_initcall(register_cpus);
432432

433433
#ifdef CONFIG_MAGIC_SYSRQ
434-
static struct sysrq_key_op srm_sysrq_reboot_op = {
434+
static const struct sysrq_key_op srm_sysrq_reboot_op = {
435435
.handler = machine_halt,
436436
.help_msg = "reboot(b)",
437437
.action_msg = "Resetting",

0 commit comments

Comments
 (0)