[-dj patch] fix compilation of drivers/input/serio/ct82c710.c

Adrian Bunk (bunk@fs.tum.de)
Wed, 19 Jun 2002 17:56:30 +0200 (CEST)


Hi,

drivers/input/serio/ct82c710.c fails to compile in 2.5.23-dj1 with the
following error:

<-- snip -->

...
gcc -Wp,-MD,./.ct82c710.o.d -D__KERNEL__
-I/home/bunk/linux/kernel-2.5/linux-2.5.23-full/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-pipe -mpreferred-stack-boundary=2 -march=k6 -nostdinc -iwithprefix
include -DKBUILD_BASENAME=ct82c710 -c -o ct82c710.o ct82c710.c
ct82c710.c: In function `ct82c710_close':
ct82c710.c:97: warning: implicit declaration of function `free_irq'
ct82c710.c: In function `ct82c710_open':
ct82c710.c:104: warning: implicit declaration of function `request_irq'
ct82c710.c: In function `ct82c710_init':
ct82c710.c:188: `ENODEV' undeclared (first use in this function)
ct82c710.c:188: (Each undeclared identifier is reported only once
ct82c710.c:188: for each function it appears in.)
ct82c710.c:191: `EBUSY' undeclared (first use in this function)
make[2]: *** [ct82c710.o] Error 1
make[2]: Leaving directory
`/home/bunk/linux/kernel-2.5/linux-2.5.23-full/drivers/input/serio'

<-- snip -->

It seems ct82c710.c should include errno.h and sched.h?

--- drivers/input/serio/ct82c710.c.old Wed Jun 19 17:49:23 2002
+++ drivers/input/serio/ct82c710.c Wed Jun 19 17:50:45 2002
@@ -36,6 +36,8 @@
#include <linux/config.h>
#include <linux/init.h>
#include <linux/serio.h>
+#include <linux/errno.h>
+#include <linux/sched.h>

MODULE_AUTHOR("Vojtech Pavlik <vojtech@ucw.cz>");
MODULE_DESCRIPTION("82C710 C&T mouse port chip driver");

cu
Adrian

-- 

You only think this is a free country. Like the US the UK spends a lot of time explaining its a free country because its a police state. Alan Cox

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