2.2.17 + mtd (current cvs) problems

Karl Pitrich pit at root.at
Thu Sep 19 14:49:03 EDT 2002


hi.

i took a vanilla 2.2.17, used patchin.sh to apply mtd-2.2.17.patch and
make necessary links.

a) i had to change some #includes, ie. for spinlock.h which is expected
in include/linux but resides in include/asm.

b) i applied yhis patch found on the mailinglist because of compile
error.

include/linux/kmod.h

-#define request_module(x) do {} while(0)
+static inline int request_module(const char *name)
+{
+       return -EINVAL;
+}


c) now, my current 'make zImage' error is as follows. (see below)

recursive grepping for daemonize() yields no match.
as far as i can see, 'thread_sem' is reasonably defined.
any help greatly appreciated.

/ karl


gcc version 2.96 20000731

make[3]: Entering directory
`/home/pit/embedded/kernel/linux/drivers/mtd'
cc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
-fomit-fr
ame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -m386
-DCPU=386   -c
 -o mtdblock.o mtdblock.c
mtdblock.c:470: warning: type defaults to `int' in declaration of
`DECLARE_MUTEX
_LOCKED'
mtdblock.c:470: warning: parameter names (without types) in function
declaration
mtdblock.c: In function `mtdblock_thread':
mtdblock.c:503: `thread_sem' undeclared (first use in this function)
mtdblock.c:503: (Each undeclared identifier is reported only once
mtdblock.c:503: for each function it appears in.)
mtdblock.c: In function `cleanup_mtdblock':
mtdblock.c:654: `thread_sem' undeclared (first use in this function)
mtdblock.c:662: array subscript is not an integer
mtdblock.c: At top level:
mtdblock.c:667: warning: type defaults to `int' in declaration of
`module_init'
mtdblock.c:667: warning: parameter names (without types) in function
declaration
mtdblock.c:667: warning: data definition has no type or storage class
mtdblock.c:668: warning: type defaults to `int' in declaration of
`module_exit'
mtdblock.c:668: warning: parameter names (without types) in function
declaration
mtdblock.c:668: warning: data definition has no type or storage class
mtdblock.c:51: warning: `mtdblock_lock' defined but not used
mtdblock.c:470: warning: `DECLARE_MUTEX_LOCKED' declared `static' but
never defi
ned
mtdblock.c:651: warning: `cleanup_mtdblock' defined but not used










More information about the linux-mtd mailing list