From: Russell King <rmk@arm.linux.org.uk>
To: linux-kernel@vger.kernel.org, jsimmons@transvirtual.com
Subject: Link errors with CONFIG_VT=n, CONFIG_SYSRQ=y
Date: Wed, 17 Jul 2002 15:29:29 +0100 [thread overview]
Message-ID: <20020717152929.A5856@flint.arm.linux.org.uk> (raw)
lkml, James,
When building 2.5.26 with CONFIG_VT=n and CONFIG_SYSRQ=y, the resulting
kernel can't be linked:
drivers/built-in.o: In function `sysrq_handle_unraw':
drivers/built-in.o(.text+0x14694): undefined reference to `fg_console'
drivers/built-in.o(.text+0x14698): undefined reference to `kbd_table'
The following is a work-around for this problem. There is probably
a cleaner solution to this.
--- orig/drivers/char/sysrq.c Wed Jul 17 15:10:39 2002
+++ linux/drivers/char/sysrq.c Wed Jul 17 15:27:18 2002
@@ -81,10 +81,12 @@
static void sysrq_handle_unraw(int key, struct pt_regs *pt_regs,
struct tty_struct *tty)
{
+#ifdef CONFIG_VT
struct kbd_struct *kbd = &kbd_table[fg_console];
if (kbd)
kbd->kbdmode = VC_XLATE;
+#endif
}
static struct sysrq_key_op sysrq_unraw_op = {
handler: sysrq_handle_unraw,
--
Russell King (rmk@arm.linux.org.uk) The developer of ARM Linux
http://www.arm.linux.org.uk/personal/aboutme.html
next reply other threads:[~2002-07-17 14:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-17 14:29 Russell King [this message]
2002-07-18 23:07 ` James Simmons
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=20020717152929.A5856@flint.arm.linux.org.uk \
--to=rmk@arm.linux.org.uk \
--cc=jsimmons@transvirtual.com \
--cc=linux-kernel@vger.kernel.org \
/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®