public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* request_firmware() gives build failures
@ 2008-05-12 21:48 Jonathan Corbet
  2008-05-13 20:43 ` Jiri Slaby
  0 siblings, 1 reply; 2+ messages in thread
From: Jonathan Corbet @ 2008-05-12 21:48 UTC (permalink / raw)
  To: linux-kernel

Just tried building -rc2 (then current git) and got a few errors like:

  drivers/built-in.o: In function `generic_set_freq':
  tuner-xc2028.c:(.text+0x90f42): undefined reference to `request_firmware'
  tuner-xc2028.c:(.text+0x91418): undefined reference to `release_firmware'

A bit of digging turned up the problem: I had fw_loader configured as a
module, but some drivers which need it were configured built-in.  Don't
ask why I had those drivers configured in at all...time to prune that
.config I've been carrying around...

In any case, setting CONFIG_FW_LOADER=y makes the problem go away.  I'm
not good enough at kconfig to make that happen magically; putting in
"select FW_LOADER" doesn't seem to be enough.  In any case, given that
callers to request_firmware() can be built in, does it make sense to
have an option to make the firmware loader modular?

jon


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

* Re: request_firmware() gives build failures
  2008-05-12 21:48 request_firmware() gives build failures Jonathan Corbet
@ 2008-05-13 20:43 ` Jiri Slaby
  0 siblings, 0 replies; 2+ messages in thread
From: Jiri Slaby @ 2008-05-13 20:43 UTC (permalink / raw)
  To: Jonathan Corbet; +Cc: linux-kernel

On 05/12/2008 11:48 PM, Jonathan Corbet wrote:
> In any case, setting CONFIG_FW_LOADER=y makes the problem go away.  I'm
> not good enough at kconfig to make that happen magically; putting in
> "select FW_LOADER" doesn't seem to be enough.

Maybe I overlooked something, but I fix that way the same issue today. What 
exactly doesn't work with select FW_LOADER?

$ grep FW ../a/moxa/.config
CONFIG_FW_LOADER=m
$ grep INTELL ../a/moxa/.config
CONFIG_MOXA_INTELLIO=y
$ vim drivers/char/Kconfig
<add select FW_LOADER to MOXA_INTELLIO>
$ make O=../a/moxa/ SUBARCH=i386 drivers/char/moxa.o
   GEN     /home/l/latest/a/moxa/Makefile
scripts/kconfig/conf -s arch/x86/Kconfig
#
# configuration written to .config
#
fatal: cannot describe '18f96f01977fa1905fd0f8f8522698cc97287022'
   Using /home/l/latest/xxx as source for kernel
   GEN     /home/l/latest/a/moxa/Makefile
   CHK     include/linux/version.h
   CHK     include/linux/utsrelease.h
   CALL    /home/l/latest/xxx/scripts/checksyscalls.sh
   CC      drivers/char/moxa.o
$ grep FW ../a/moxa/.config
CONFIG_FW_LOADER=y

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

end of thread, other threads:[~2008-05-13 20:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-12 21:48 request_firmware() gives build failures Jonathan Corbet
2008-05-13 20:43 ` Jiri Slaby

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