2001-11-07 13:21:11

by Manik Raina

[permalink] [raw]
Subject: ps2esdi.c broken ?

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>