compile problem with mtd-patch-2.2.18-20001218-2230GMT

Kevin Fenzi kevin at scrye.com
Mon Jan 29 19:02:49 EST 2001


Hi there. 

Trying to get a DOC2000 working with the 2.2.18 kernel here. 
When I patch the sources and compile, I get:

cc -D__KERNEL__ -I/usr/src/redhat/BUILD/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -m486 -DCPU=486   -c -o doc2000.o doc2000.c
doc2000.c: In function `init_doc2000':
doc2000.c:1090: warning: implicit declaration of function `inter_module_register'
doc2000.c: At top level:
doc2000.c:1094: parse error before `cleanup_doc2000'
doc2000.c:1095: warning: return-type defaults to `int'
doc2000.c: In function `cleanup_doc2000':
doc2000.c:1109: warning: implicit declaration of function `inter_module_unregister'
doc2000.c:1110: warning: control reaches end of non-void function
doc2000.c: At top level:
doc2000.c:1112: warning: initialization from incompatible pointer type
make[3]: *** [doc2000.o] Error 1
make[3]: Leaving directory `/usr/src/redhat/BUILD/linux/drivers/mtd'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/redhat/BUILD/linux/drivers/mtd'
make[1]: *** [_subdir_mtd] Error 2
make[1]: Leaving directory `/usr/src/redhat/BUILD/linux/drivers'
make: *** [_dir_drivers] Error 2

the code snip looks like: 

static void __exit cleanup_doc2000(void)
{
       struct mtd_info *mtd;
       struct DiskOnChip *this;

any ideas? This is on a redhat 6.2 box, with egcs-1.1.2-30 compiler. 
is this a compiler issue? I am going to try and compile on a rh7 box
in a few, but I thought I would check with the list to see if this is
a known problem? 

thanks, 

kevin



To unsubscribe, send "unsubscribe mtd" to majordomo at infradead.org



More information about the linux-mtd mailing list