kconfig strikes again (was: Many undefined references in netdev/pcmcia due to menuconfig objects II)
Jan Engelhardt
jengelh at linux01.gwdg.de
Mon Jun 4 13:07:01 EDT 2007
On Jun 3 2007 18:58, Avuton Olrich wrote:
>
[GIT tree c1a13ff57ab1ce52a0aae9984594dbfcfbaf68c0, but happens with
kernel du jour^W git (Linus's master) too]
> drivers/built-in.o: In function `tc574_probe':
> 3c574_cs.c:(.text+0xcf1d4): undefined reference to `pcmcia_request_io'
> pcnet_cs.c:(.text+0xd1880): undefined reference to `pcmcia_request_io'
Ok I got that reproduced. (And described.)
This looks very much like a Kconfig bug (which Sam Ravnborg
already knows of) I think. See:
CONFIG_PCMCIA_PCNET depends on CONFIG_NET_PCMCIA
CONFIG_NET_PCMCIA depends on CONFIG_PCMCIA
CONFIG_PCMCIA *depends* on CONFIG_PCCARD
CONFIG_PCMCIA *selects* CONFIG_CRC32
and here, IIRC, is/was the bug, that a config option which has both
depends and selects does not correctly work. CONFIG_PCMCIA_PCNET
should inherit the state of CONFIG_PCMCIA, that is, if PCMCIA
("16-bit PCMCIA support") is M, the pcnet_cs driver automatically
becomes M too (if the bug was not there).
Jan
--
More information about the linux-pcmcia
mailing list