[PATCH] __sysrq_put_key_op undeclared

Olaf Hering olh at suse.de
Tue Nov 11 08:35:44 EST 2003


kdb doesnt compile if sysrq is not active in the .config.


--- ../linuxppc64-2.5/arch/ppc64/kdb/kdbasupport.c	2003-10-15 04:46:20.000000000 -0700
+++ ./arch/ppc64/kdb/kdbasupport.c	2003-11-10 13:31:19.000000000 -0800
@@ -74,6 +74,7 @@ extern int kdb_parse(const char *cmdstr,
 #include <linux/sysrq.h>
 #include <linux/interrupt.h>

+#ifdef CONFIG_MAGIC_SYSRQ
 static void
 sysrq_handle_kdb(int key, struct pt_regs *pt_regs, struct kbd_struct *kbd, struct tty_struct *tty)
 {
@@ -93,6 +94,7 @@ kdb_map_scc(void)
 	/* register sysrq 'x' */
 	__sysrq_put_key_op('x', &sysrq_kdb_op);
 }
+#endif


 /*
@@ -2089,7 +2091,9 @@ functionname(int argc, const char **argv
 void __init
 kdba_init(void)
 {
+#ifdef CONFIG_MAGIC_SYSRQ
 	kdb_map_scc();		/* map sysrq key */
+#endif

 	debugger = kdb_debugger;
 	debugger_bpt = kdb_debugger_bpt;
--
USB is for mice, FireWire is for men!

sUse lINUX ag, nÜRNBERG

** Sent via the linuxppc64-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc64-dev mailing list