request_firmware() gives build failures
From: Jonathan Corbet
Date: Mon May 12 2008 - 17:48:39 EST
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/