When I compile my loadable Kernel Module, I get two warnings:
Building modules, stage 2.
MODPOST
*** Warning: "iounmap" [/home/dev/blah-blah-blah/myKM.ko] undefined!
*** Warning: "__ioremap" [/home/dev/blah-blah-blah/myKM.ko] undefined!
MODPOST
*** Warning: "iounmap" [/home/dev/blah-blah-blah/myKM.ko] undefined!
*** Warning: "__ioremap" [/home/dev/blah-blah-blah/myKM.ko] undefined!
The build finishes, and when I try to insmod the module, it fails because of these unresolved fns.
myKM: Unknown symbol iounmap
myKM: Unknown symbol __ioremap
myKM: Unknown symbol __ioremap
Kernel is 2.6.10, slightly modified by Motorola/Freescale for coldfire 5485 (with MMU)
gcc version 3.4.0
Target is the coldfire 5485.
On the running target, I can see an entry for both fns in /proc/kallsyms
As an experiment, I built the drivers/i2c/busses/i2c-voodoo3.c as a loadable module, since it also
uses ioremap, and it failed in the same way.
What am I doing wrong?
Thanks,
Steve