[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

undefined references (__raw_readb)



Trying to use the latest mtd+jffs2 code from cvs, I had to make a few changes 
to axisflashmap.c to make it compile. 
-'module' field of the map_info struct is now called 'owner'
-include <linux/init.h>, which was probably included by one of the mtd headers 
before, but not anymore.

Now it compiles fine, but during linking I get several undefined references:

drivers/mtd/mtdlink.o: In function `simple_map_read8':
drivers/mtd/mtdlink.o(.text+0x7b1e): undefined reference to `__raw_readb'
drivers/mtd/mtdlink.o: In function `simple_map_read16':
drivers/mtd/mtdlink.o(.text+0x7b30): undefined reference to `__raw_readw'
drivers/mtd/mtdlink.o: In function `simple_map_read32':
drivers/mtd/mtdlink.o(.text+0x7b42): undefined reference to `__raw_readl'
drivers/mtd/mtdlink.o: In function `simple_map_write8':
drivers/mtd/mtdlink.o(.text+0x7b78): undefined reference to `__raw_writeb'
drivers/mtd/mtdlink.o: In function `simple_map_write16':
drivers/mtd/mtdlink.o(.text+0x7b8e): undefined reference to `__raw_writew'
drivers/mtd/mtdlink.o: In function `simple_map_write32':
drivers/mtd/mtdlink.o(.text+0x7ba4): undefined reference to `__raw_writel'
make[1]: *** [vmlinux] Error 1


Compiling for i386 goes fine, so I don't want to blame the mtd people right 
away ;-)

I noticed that __raw_readb and such are in ksyms.c for some archs, but not for 
cris.
However, also not for i386, which works, so that can't really be it, can it?

What could be the reason for this?

Best regards,

Pieter