Fix for magic sysrq when CONFIG_VT=n]

Fix for magic sysrq when CONFIG_VT=n]

Post by Crutcher Dunnavan » Tue, 13 Aug 2002 16:50:05



Trivial patch for SysRQ.


Date: Mon, 12 Aug 2002 16:26:27 +1000


Subject: [TRIVIAL] Fix for magic sysrq when CONFIG_VT=n


  The "unRaw" option for the magic sysrq key fails to compile if
  CONFIG_VT is false.  This patch fixes that:

--- trivial-2.5.31/drivers/char/sysrq.c.orig    2002-08-12 16:14:29.000000000 +1000

 };
 #endif

-
+#ifdef CONFIG_VT
 /* unraw sysrq handler */
 static void sysrq_handle_unraw(int key, struct pt_regs *pt_regs,

        help_msg:       "unRaw",
        action_msg:     "Keyboard mode set to XLATE",
 };
-
+#endif /* CONFIG_VT */

 /* reboot sysrq handler */

                 as 'Off' at init time */
 /* p */        &sysrq_showregs_op,
 /* q */        NULL,
+#ifdef CONFIG_VT
 /* r */        &sysrq_unraw_op,
+#else
+/* r */ NULL,
+#endif
 /* s */        &sysrq_sync_op,
 /* t */        &sysrq_showstate_op,
 /* u */        &sysrq_mountro_op,
--
  Don't blame me: the Monkey is driving

----- End forwarded message -----

--

ECSS System Hacker / UA COE CS Senior
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

1. Compile fix for magic sysrq and !CONFIG_VT

Linus, please apply.  This fixes compilation of the magic sysrq code
when compiled without CONFIG_VT.

diff -urN /home/dgibson/kernel/linuxppc-2.5/drivers/char/sysrq.c linux-bluefish/drivers/char/sysrq.c
--- /home/dgibson/kernel/linuxppc-2.5/drivers/char/sysrq.c      2002-07-16 09:13:58.000000000 +1000

 };
 #endif

-
+#ifdef CONFIG_VT
 /* unraw sysrq handler */
 static void sysrq_handle_unraw(int key, struct pt_regs *pt_regs,

        help_msg:       "unRaw",
        action_msg:     "Keyboard mode set to XLATE",
 };
-
+#endif /* CONFIG_VT */

 /* reboot sysrq handler */

                 as 'Off' at init time */
 /* p */        &sysrq_showregs_op,
 /* q */        NULL,
+#ifdef CONFIG_VT
 /* r */        &sysrq_unraw_op,
+#else
+/* r */ NULL,
+#endif
 /* s */        &sysrq_sync_op,
 /* t */        &sysrq_showstate_op,
 /* u */        &sysrq_mountro_op,

--
David Gibson                    | For every complex problem there is a

                                | wrong.
http://www.ozlabs.org/people/dgibson
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. CDE Login Screen

3. Fix compile with !CONFIG_VT

4. 2.5.42 ACPI/Sb16 IRQ conflict

5. Magic SysRq Key

6. icons "Gnome style" under fluxbox

7. Magic sysrq key

8. New HDD and Partion Magic or second PC.

9. Magic SysRq +# in 2.4.9-ac/2.4.10-pre12

10. Stupid Question re:magic SysRq

11. Keyboard/console lockups, Magic SysRQ fails [2.4.20(-pre3)]

12. SCHED_FIFO task blocks magic sysrq

13. Magic SysRq key isn't -- what am I doing wrong?