]> Git Repo - linux.git/commitdiff
alpha: Fix build around srm_sysrq_reboot_op
authorJoerg Roedel <[email protected]>
Thu, 11 Jun 2020 09:11:39 +0000 (11:11 +0200)
committerMatt Turner <[email protected]>
Sat, 13 Jun 2020 00:43:18 +0000 (17:43 -0700)
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]>
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]>
arch/alpha/kernel/setup.c

index e6d8aad15b22cf5d51f4213ba7d3fdb83b93a222..916e42d74a8695bdc6b56add961f795c3241c564 100644 (file)
@@ -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,
This page took 0.058617 seconds and 4 git commands to generate.