public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Cannot compile latest mtd with 2.6.10
@ 2008-06-02 23:48 Mandeep Ahuja
  2008-06-03  1:14 ` Josh Boyer
  0 siblings, 1 reply; 5+ messages in thread
From: Mandeep Ahuja @ 2008-06-02 23:48 UTC (permalink / raw)
  To: linux-mtd

Hi,
I recently check out the 'mtd' module from CVS. I have kernel 2.6.10 for 
mips malta board. I ran the patchkernel.sh script and then tried to 
compile my kernel.

I ran into this
 CHK     include/linux/version.h
make[1]: `arch/mips/kernel/offset.s' is up to date.
 CHK     include/asm-mips/offset.h
 CHK     include/linux/compile.h
 CHK     usr/initramfs_list
 CC      drivers/mtd/mtdcore.o
drivers/mtd/mtdcore.c:28: warning: type defaults to `int' in declaration 
of `DEFINE_MUTEX'
drivers/mtd/mtdcore.c:28: warning: parameter names (without types) in 
function declaration
drivers/mtd/mtdcore.c:28: warning: data definition has no type or 
storage class
drivers/mtd/mtdcore.c:31: error: `mtd_table_mutex' undeclared here (not 
in a function)
drivers/mtd/mtdcore.c:31: error: initializer element is not constant
drivers/mtd/mtdcore.c:31: error: (near initialization for 
`__ksymtab_mtd_table_mutex.value')
drivers/mtd/mtdcore.c: In function `add_mtd_device':
drivers/mtd/mtdcore.c:50: warning: implicit declaration of function 
`mutex_lock'
drivers/mtd/mtdcore.c:68: warning: implicit declaration of function 
`mutex_unlock'
drivers/mtd/mtdcore.c: At top level:
drivers/mtd/mtdcore.c:31: error: __ksymtab_mtd_table_mutex causes a 
section type conflict
make[2]: *** [drivers/mtd/mtdcore.o] Error 1
make[1]: *** [drivers/mtd] Error 2
make: *** [drivers] Error 2

Looks like some mutex problem, but the 2.6.10 does not have mutexes. How 
do I get around this problem?

Would appreciate any help
thanks
Mandeep

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-06-03 17:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-02 23:48 Cannot compile latest mtd with 2.6.10 Mandeep Ahuja
2008-06-03  1:14 ` Josh Boyer
2008-06-03 15:47   ` Mandeep Ahuja
2008-06-03 16:56   ` David Woodhouse
2008-06-03 17:24     ` SPAM-LOW: " Mandeep Ahuja

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox