Linux MIPS Architecture development
 help / color / mirror / Atom feed
* "undefined symbol" on 2.6.14
@ 2006-06-14 10:53 Roman Mashak
  2006-06-14 10:53 ` Roman Mashak
  2006-06-14 11:53 ` Ralf Baechle
  0 siblings, 2 replies; 7+ messages in thread
From: Roman Mashak @ 2006-06-14 10:53 UTC (permalink / raw)
  To: linux-mips

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: mrv@corecom.co.kr 

^ permalink raw reply	[flat|nested] 7+ messages in thread

* "undefined symbol" on 2.6.14
  2006-06-14 10:53 "undefined symbol" on 2.6.14 Roman Mashak
@ 2006-06-14 10:53 ` Roman Mashak
  2006-06-14 11:53 ` Ralf Baechle
  1 sibling, 0 replies; 7+ messages in thread
From: Roman Mashak @ 2006-06-14 10:53 UTC (permalink / raw)
  To: linux-mips

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: mrv@corecom.co.kr 

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: "undefined symbol" on 2.6.14
  2006-06-14 10:53 "undefined symbol" on 2.6.14 Roman Mashak
  2006-06-14 10:53 ` Roman Mashak
@ 2006-06-14 11:53 ` Ralf Baechle
  2006-06-15  0:40   ` Roman Mashak
  2006-06-15  1:09   ` Roman Mashak
  1 sibling, 2 replies; 7+ messages in thread
From: Ralf Baechle @ 2006-06-14 11:53 UTC (permalink / raw)
  To: Roman Mashak; +Cc: linux-mips

On Wed, Jun 14, 2006 at 07:53:01PM +0900, Roman Mashak wrote:

> 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?

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: "undefined symbol" on 2.6.14
  2006-06-14 11:53 ` Ralf Baechle
@ 2006-06-15  0:40   ` Roman Mashak
  2006-06-15  0:40     ` Roman Mashak
  2006-06-15  1:09   ` Roman Mashak
  1 sibling, 1 reply; 7+ messages in thread
From: Roman Mashak @ 2006-06-15  0:40 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: linux-mips

Hello, Ralf!
You wrote to "Roman Mashak" <mrv@corecom.co.kr> 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: mrv@corecom.co.kr 

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: "undefined symbol" on 2.6.14
  2006-06-15  0:40   ` Roman Mashak
@ 2006-06-15  0:40     ` Roman Mashak
  0 siblings, 0 replies; 7+ messages in thread
From: Roman Mashak @ 2006-06-15  0:40 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: linux-mips

Hello, Ralf!
You wrote to "Roman Mashak" <mrv@corecom.co.kr> 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: mrv@corecom.co.kr 

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: "undefined symbol" on 2.6.14
  2006-06-14 11:53 ` Ralf Baechle
  2006-06-15  0:40   ` Roman Mashak
@ 2006-06-15  1:09   ` Roman Mashak
  2006-06-15  1:09     ` Roman Mashak
  1 sibling, 1 reply; 7+ messages in thread
From: Roman Mashak @ 2006-06-15  1:09 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: linux-mips

Hello, Ralf!
You wrote to "Roman Mashak" <mrv@corecom.co.kr> 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: mrv@corecom.co.kr 

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: "undefined symbol" on 2.6.14
  2006-06-15  1:09   ` Roman Mashak
@ 2006-06-15  1:09     ` Roman Mashak
  0 siblings, 0 replies; 7+ messages in thread
From: Roman Mashak @ 2006-06-15  1:09 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: linux-mips

Hello, Ralf!
You wrote to "Roman Mashak" <mrv@corecom.co.kr> 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: mrv@corecom.co.kr 

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-06-15  1:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-14 10:53 "undefined symbol" on 2.6.14 Roman Mashak
2006-06-14 10:53 ` Roman Mashak
2006-06-14 11:53 ` Ralf Baechle
2006-06-15  0:40   ` Roman Mashak
2006-06-15  0:40     ` Roman Mashak
2006-06-15  1:09   ` Roman Mashak
2006-06-15  1:09     ` Roman Mashak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox