ps2esdi.c broken ?

Manik Raina (manik@cisco.com)
Wed, 07 Nov 2001 18:50:19 +0530


when PS2 ESDI support is enabled (in kernel without module
support) , ps2esdi.c breaks during compilation.

looks like it's missing module.h

ps2esdi.c:153: `THIS_MODULE' undeclared here (not in a function)
ps2esdi.c:153: initializer element for `ps2esdi_fops.owner' is not
constant
ps2esdi.c:157: initializer element for `ps2esdi_fops' is not constant

this fix works ....

--- /home/manik/linux/orig/linux/drivers/block/ps2esdi.c Fri Oct
26 02:28:34 2001
+++ ./ps2esdi.c Wed Nov 7 18:35:07 2001
@@ -27,6 +27,7 @@
+ reset after read/write error
*/

+#include <linux/module.h>
#include <linux/config.h>
#include <linux/major.h>

-
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/