2008-04-05 09:14:39     Using gptimer API in a loadable module

Document created by Aaronwu Employee on Aug 6, 2013
Version 1Show Document
  • View in full screen mode

2008-04-05 09:14:39     Using gptimer API in a loadable module

John Zalfer (UNITED STATES)

Message: 53684    Hi,

 

I've written a driver that makes use of the gptimer API and it compiles fine as a static object (.o file) but when it tries to compile as a loadable module (.ko file) it chokes:

 

[...]

Kernel: arch/blackfin/boot/vmImage is ready

  Building modules, stage 2.

  MODPOST 30 modules

ERROR: "enable_gptimers" [drivers/serial/pwm.ko] undefined!

ERROR: "set_gptimer_config" [drivers/serial/pwm.ko] undefined!

ERROR: "disable_gptimers" [drivers/serial/pwm.ko] undefined!

ERROR: "set_gptimer_pwidth" [drivers/serial/pwm.ko] undefined!

ERROR: "set_gptimer_period" [drivers/serial/pwm.ko] undefined!

make[1]: *** [__modpost] Error 1

 

Any idea what could be causing the linking problem here?

 

-John

QuoteReplyEditDelete

 

 

2008-04-05 23:50:21     Re: Using gptimer API in a loadable module

Robin Getz (UNITED STATES)

Message: 53693    John:

 

Most likely because the interfaces you are using are not exported.

 

-Robin

QuoteReplyEditDelete

 

 

2008-04-06 01:02:44     Re: Using gptimer API in a loadable module

Vitja Makarov (RUSSIAN FEDERATION)

Message: 53696    Did you enabled CONFIG_BFIN_GPTIMERS option?

QuoteReplyEditDelete

 

 

2008-04-06 02:20:08     Re: Using gptimer API in a loadable module

John Zalfer (UNITED STATES)

Message: 53697    Ah, I hadn't enabled the GPTimer API.  Compiles now.  Thanks guys!

 

-John

Attachments

    Outcomes