"undefined symbol" on 2.6.14
Hello.
I compiled driver as a module (for our own device) for MIPS target. At loading time get:
unresolved symbol 'mips_hpt_frequency'
Modules.symvers which contains symbols doesn't have reference for 'mips_hpt_frequency'. Doesn it mean it's supposed to be exported with EXPORT_SYMBOL or my problem's reason lies on another layer?
Thanks!
With best regards, Roman Mashak. E-mail: [email protected]
Quoted 8 lines · Roman Mashak
I compiled driver as a module (for our own device) for MIPS target. At loading time get:
unresolved symbol '
mips_hpt_frequency'Modules.symvers which contains symbols doesn't have reference for '
mips_hpt_frequency'. Doesn it mean it's supposed to be exported withEXPORT_SYMBOLor my problem's reason lies on another layer?
The symbol isn't export simply because it wasn't considered useful to export it. The expected use of mips_hpt_frequency is to initialize it in the platform code as system startup time to the counter frequency, then not look at it again.
I wonder how you're using it in your module?
Any export I would add - as per general policy for the kernel - an EXPORT_SYMBOL_GPL btw.
Ralf
Hello, Ralf!
You wrote to "Roman Mashak" <[email protected]> on Wed, 14 Jun 2006 12:53:16 +0100:
RB> The symbol isn't export simply because it wasn't considered useful to RB> export it. The expected use of mips_hpt_frequency is to initialize it RB> in the platform code as system startup time to the counter frequency, RB> then not look at it again.
RB> I wonder how you're using it in your module?
Actually it's not used anywhere in driver. Only timer functions and structures are in code. How come the linker refers to this particular function?
RB> Any export I would add - as per general policy for the kernel - an RB> EXPORT_SYMBOL_GPL btw.
With best regards, Roman Mashak. E-mail: [email protected]
Hello, Ralf!
You wrote to "Roman Mashak" <[email protected]> on Wed, 14 Jun 2006 12:53:16 +0100:
[skip]
RB> The symbol isn't export simply because it wasn't considered useful to
RB> export it. The expected use of mips_hpt_frequency is to initialize it
RB> in the platform code as system startup time to the counter frequency,
RB> then not look at it again.
I should've been more clear here. We use MIPS-based processor from Cavium Networks and their toolchain and 64-bit mode patched kernel 2.6.14.
RB> I wonder how you're using it in your module?
With best regards, Roman Mashak. E-mail: [email protected]