CONFIG_MAGIC_SYSRQ without CONFIG_VT broken in 2.5.26
PATCH 1/1 CONFIG_MAGIC_SYSRQ without CONFIG_VT broken in 2.5.26
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 ------------------------------------
drivers/char/sysrq.c renamed from drivers/char/sysrq.c.orig +3 -1
@@ -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,
Signature · 3 lines
_________________________________________________________________________ / Werner Almesberger, Buenos Aires, Argentina [email protected] / /_http://icapeople.epfl.ch/almesber/_____________________________________/
Quoted 3 lines · Werner Almesberger
2.5.26 fails with missing symbols
fg_consoleandkbd_tableif enabling Magic SysRq but disabling virtual terminals. The trivial patch below fixes this.
I posted a fix for this on July 17th. However, yours looks better. James?
Quoted 1 line
------------------------------------ patch ------------------------------------
drivers/char/sysrq.c renamed from drivers/char/sysrq.c.orig +3 -1
@@ -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,
Quoted 9 lines
Signature · 8 lines
_________________________________________________________________________ / Werner Almesberger, Buenos Aires, Argentina [email protected] / /_http://icapeople.epfl.ch/almesber/_____________________________________/ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Signature · 2 lines
Russell King ([email protected]) The developer of ARM Linux http://www.arm.linux.org.uk/personal/aboutme.html
drivers/char/sysrq.c line 376
Quoted 7 lines · Russell King
drivers/char/sysrq.c renamed from drivers/char/sysrq.c.orig +2
-0@@ -371,7 +371,9 @@as 'Off' at init time */ /* p */ &sysrq_showregs_op,/* q */ NULL , +#ifdef CONFIG_VT /* r */ &sysrq_unraw_op, +#endif
Shouldn't that be something more like?
+#ifdef CONFIG_VT
/* r */ &sysrq_unraw_op,
+#else
+/* r */ NULL,
+#endif
Signature · 1 line
//anders/g
Review
Quoted 7 lines · Anders Gustafsson
Shouldn't that be something more like?
(quoted diff) +4
-0+#ifdef CONFIG_VT /* r */ &sysrq_unraw_op, +#else +/* r */ NULL, +#endif
Argl, I'm an idiot. Yes, you're absolutely right. Corrected patch below.
- Werner
------------------------------------ patch ------------------------------------
drivers/char/sysrq.c renamed from drivers/char/sysrq.c.orig +5 -1
@@ -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,11 @@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,
Signature · 3 lines
_________________________________________________________________________ / Werner Almesberger, Buenos Aires, Argentina [email protected] / /_http://icapeople.epfl.ch/almesber/_____________________________________/
James Simmons
AppliedQuoted 7 lines
Quoted 4 lines
2.5.26 fails with missing symbols
fg_consoleandkbd_tableif enabling Magic SysRq but disabling virtual terminals. The trivial patch below fixes this.I posted a fix for this on July 17th. However, yours looks better. James?
Applied. I will push the changes to Linus. I have other updates as well. I will post soon.