Skip to content

Commit 777747f

Browse files
joergroedelmattst88
authored andcommitted
alpha: Fix build around srm_sysrq_reboot_op
The patch introducing the struct was probably never compile tested, because it sets a handler with a wrong function signature. Wrap the handler into a functions with the correct signature to fix the build. Fixes: 0f1c968 ("tty/sysrq: alpha: export and use __sysrq_get_key_op()") Cc: Emil Velikov <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Tested-by: Guenter Roeck <[email protected]> Signed-off-by: Joerg Roedel <[email protected]> Signed-off-by: Matt Turner <[email protected]>
1 parent 7812193 commit 777747f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

arch/alpha/kernel/setup.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,8 +430,13 @@ register_cpus(void)
430430
arch_initcall(register_cpus);
431431

432432
#ifdef CONFIG_MAGIC_SYSRQ
433+
static void sysrq_reboot_handler(int unused)
434+
{
435+
machine_halt();
436+
}
437+
433438
static const struct sysrq_key_op srm_sysrq_reboot_op = {
434-
.handler = machine_halt,
439+
.handler = sysrq_reboot_handler,
435440
.help_msg = "reboot(b)",
436441
.action_msg = "Resetting",
437442
.enable_mask = SYSRQ_ENABLE_BOOT,

0 commit comments

Comments
 (0)