alpha: Fix build around srm_sysrq_reboot_op
Quoted 10 lines · Joerg Roedel
From: Joerg Roedel <[email protected]>
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 0f1c9688a194 ("tty/sysrq: alpha: export and use __sysrq_get_key_op()")Cc Emil Velikov <[email protected]>Cc Guenter Roeck <[email protected]>Signed-off-by Joerg Roedel <[email protected]>
Reviewed-by Guenter Roeck <[email protected]>
Tested-by Guenter Roeck <[email protected]>
Quoted 26 lines
--- arch/alpha/kernel/setup.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)arch/alpha/kernel/setup.c +6
-1@@ -430,8 +430,13 @@ register_cpus(void)arch_initcall (register_cpus);#ifdef CONFIG_MAGIC_SYSRQ +static void sysrq_reboot_handler (int unused) +{ +machine_halt (); +} +static const struct sysrq_key_op srm_sysrq_reboot_op = { - .handler = machine_halt, + .handler = sysrq_reboot_handler, .help_msg ="reboot(b)" , .action_msg ="Resetting" , .enable_mask = SYSRQ_ENABLE_BOOT,Signature · 1 line
2.26.2