Building module: modpost error
by jnr from LinuxQuestions.org on (#5F1ZF)
Hello there, I am happy to ask my first question here. Hopefully I'll be able to answer some too, but it may take I while (at least in this sub forum)
I'm making a tiny kernel mod to experiment with memory, for which I am including linux/rmap.h. On building however I get modpost errors:
Code:ERROR: modpost: "rmap_walk_locked" [/../mymod.ko] undefined!
ERROR: modpost: "page_lock_anon_vma_read" [/../mymod.ko] undefined!Any idea what this means or why I can't seem to use these? They do appear to be exported?
Edit: They don't seem to be exported, at least they are not listed in Module.symvers. Is it simply not possible to do such operations from a module?
Cheers


I'm making a tiny kernel mod to experiment with memory, for which I am including linux/rmap.h. On building however I get modpost errors:
Code:ERROR: modpost: "rmap_walk_locked" [/../mymod.ko] undefined!
ERROR: modpost: "page_lock_anon_vma_read" [/../mymod.ko] undefined!Any idea what this means or why I can't seem to use these? They do appear to be exported?
Edit: They don't seem to be exported, at least they are not listed in Module.symvers. Is it simply not possible to do such operations from a module?
Cheers