[parisc-linux] simple_strtol?

Richard Hirst rhirst@linuxcare.com
Tue, 19 Mar 2002 07:26:33 +0000


On Mon, Mar 18, 2002 at 08:12:58PM -0800, James E. Pace wrote:
> 
> Hi.
> 
> I'm trying to get FiST
> (http://www.cs.columbia.edu/~ezk/research/fist/) working on my 712.
> I've got kernel version 2.4.17 [ uname -a = Linux rabbit 2.4.17 #2 Sat
> Mar 16 08:27:47 PST 2002 parisc unknown ].
> 
> I'm able to compile a kernel module that includes simple_strtol, but
> when I insmod it, I get :
> 
> + insmod ./rot13fs.o
> ./rot13fs.o: unresolved symbol simple_strtol
> ./rot13fs.o:
> Hint: You are trying to load a module without a GPL compatible license
>       and it has unresolved symbols.  Contact the module supplier for
>       assistance, only they can help you.
> 
> 
> What am I doing wrong?

You need to export the symbol from the kernel for use in modules.  Try
adding

EXPORT_SYMBOL(simple_strtol);

to arch/parisc/kernel/parisc_ksyms.c - maybe with an appropriate
#include for the prototype.

Richard