[PATCH] CONFIG_MAGIC_SYSRQ without CONFIG_VT broken in 2.5.26

From: Werner Almesberger (wa@almesberger.net)
Date: Thu Jul 18 2002 - 20:06:35 EST


2.5.26 fails with missing symbols fg_console and kbd_table if
enabling Magic SysRq but disabling virtual terminals. The
trivial patch below fixes this.

- Werner

------------------------------------ patch ------------------------------------

--- linux-2.5.26/drivers/char/sysrq.c.orig Thu Jul 18 12:55:09 2002
+++ linux-2.5.26/drivers/char/sysrq.c Thu Jul 18 12:55:15 2002
@@ -74,7 +74,6 @@
         help_msg: "saK",
         action_msg: "SAK",
 };
-#endif
 
 
 /* unraw sysrq handler */
@@ -91,6 +90,7 @@
         help_msg: "unRaw",
         action_msg: "Keyboard mode set to XLATE",
 };
+#endif /* CONFIG_VT */
 
 
 /* reboot sysrq handler */
@@ -371,7 +371,9 @@
                  as 'Off' at init time */
 /* p */ &sysrq_showregs_op,
 /* q */ NULL,
+#ifdef CONFIG_VT
 /* r */ &sysrq_unraw_op,
+#endif
 /* s */ &sysrq_sync_op,
 /* t */ &sysrq_showstate_op,
 /* u */ &sysrq_mountro_op,

-- 
  _________________________________________________________________________
 / Werner Almesberger, Buenos Aires, Argentina         wa@almesberger.net /
/_http://icapeople.epfl.ch/almesber/_____________________________________/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Jul 23 2002 - 22:00:28 EST