From: Crutcher Dunnavant <crutcher@eng.ua.edu>
To: Linus Torvalds <torvalds@transmeta.com>, linux-kernel@vger.kernel.org
Subject: [rusty@rustcorp.com.au: [TRIVIAL] Fix for magic sysrq when CONFIG_VT=n]
Date: Mon, 12 Aug 2002 02:40:28 -0500 [thread overview]
Message-ID: <20020812024028.A5420@monket.dyndns.org> (raw)
Trivial patch for SysRQ.
----- Forwarded message from Rusty Trivial Russell <rusty@rustcorp.com.au> -----
Date: Mon, 12 Aug 2002 16:26:27 +1000
To: mj@atrey.karlin.mff.cuni.cz, crutcher+kernel@datastacks.com
From: Rusty Trivial Russell <rusty@rustcorp.com.au>
Subject: [TRIVIAL] Fix for magic sysrq when CONFIG_VT=n
From: David Gibson <david@gibson.dropbear.id.au>
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
+++ trivial-2.5.31/drivers/char/sysrq.c 2002-08-12 16:14:29.000000000 +1000
@@ -76,7 +76,7 @@
};
#endif
-
+#ifdef CONFIG_VT
/* unraw sysrq handler */
static void sysrq_handle_unraw(int key, struct pt_regs *pt_regs,
struct tty_struct *tty)
@@ -91,7 +91,7 @@
help_msg: "unRaw",
action_msg: "Keyboard mode set to XLATE",
};
-
+#endif /* CONFIG_VT */
/* reboot sysrq handler */
static void sysrq_handle_reboot(int key, struct pt_regs *pt_regs,
@@ -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,
--
Don't blame me: the Monkey is driving
File: David Gibson <david@gibson.dropbear.id.au>: [TRIVIAL] Fix for magic sysrq when CONFIG_VT=n
----- End forwarded message -----
--
Crutcher Dunnavant <crutcher+spam@eng.ua.edu>
ECSS System Hacker / UA COE CS Senior
reply other threads:[~2002-08-12 7:38 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020812024028.A5420@monket.dyndns.org \
--to=crutcher@eng.ua.edu \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®