sysrq_enabled MIA: drivers/char/keyboard.c (was Re: 2.3.21 fails to compile)

John Kennedy (jk@csuchico.edu)
Tue, 12 Oct 1999 05:03:34 -0700


--yNb1oOkm5a9FJOVX
Content-Type: multipart/mixed; boundary="8t9RHnE3ZwKMSgU+"

--8t9RHnE3ZwKMSgU+
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable

On Mon, Oct 11, 1999 at 10:18:24PM -0400, Jeff Garzik wrote:
> Michael Harnois wrote:
> >=20
> > kernel/kernel.o(.data+0x1460): undefined reference to `sysrq_enabled'
> > drivers/char/char.o: In function `handle_scancode':
> > drivers/char/char.o(.text+0xb614): undefined reference to `sysrq_enable=
d'
>=20
> I noticed that was removed... this patch got me going. ...
[patch against drivers/char/sysrq.c deleted]

It looks like drivers/char/keyboard.c is where it is missing from:

[diff -u linux-2.3.2[01]/drivers/char/keyboard.c]
--- linux-2.3.20/drivers/char/keyboard.c Thu Aug 26 13:50:37 1999
+++ linux-2.3.21/drivers/char/keyboard.c Mon Oct 11 10:15:40 1999
@@ -32,6 +32,7 @@
#include <linux/string.h>
#include <linux/random.h>
#include <linux/init.h>
+#include <linux/module.h>
=20
#include <asm/keyboard.h>
#include <asm/bitops.h>
@@ -155,7 +156,6 @@
=20
#ifdef CONFIG_MAGIC_SYSRQ
static int sysrq_pressed;
-int sysrq_enabled =3D 1;
#endif
=20
/*

--8t9RHnE3ZwKMSgU+
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=PATCH

--- ./drivers/char/keyboard.c.OLD Mon Oct 11 10:15:40 1999
+++ ./drivers/char/keyboard.c Tue Oct 12 04:50:23 1999
@@ -156,6 +156,7 @@

#ifdef CONFIG_MAGIC_SYSRQ
static int sysrq_pressed;
+int sysrq_enabled = 1;
#endif

/*

--8t9RHnE3ZwKMSgU+--

--yNb1oOkm5a9FJOVX
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
MessageID: DN5EZRRR9q2yfYfKzY3aWVi81NlG0nfy

iQA/AwUBOAMjlG/ftxGdcmZ0EQK6KACgjZA4fJ95cmQg8Sj2ksH5rAO1b0QAoJWy
TxMnZ8lN6ezoIKsuNCuVjiwN
=QjWx
-----END PGP SIGNATURE-----

--yNb1oOkm5a9FJOVX--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/