Duplicate Kconfig symbol
Hi Yann, all,
HISAX_AVM_A1_PCMCIA is declared twice in drivers/isdn/hisax/Kconfig. As a bool both times, but with different defaults and dependencies.
As far as I can see, Kconfig simply ignores the second declaration. I'll send a patch to the maintainer of the ISDN subsystem, but couldn't/shouldn't Kconfig complain about the second declaration, instead of ignoring it? That would let us spot such errors much earlier.
Thanks,
Signature · 2 lines
Jean Delvare SUSE L3 Support
Quoted 6 lines · Jean Delvare
Hi Yann, all,
HISAX_AVM_A1_PCMCIAis declared twice indrivers/isdn/hisax/Kconfig. As a bool both times, but with different defaults and dependencies.As far as I can see,
Kconfigsimply ignores the second declaration.
No - the second declaration wins.
This is on purpose so an arch can override some generic symbol. This is used in a lot of places.
People often add definitions to all archs rahter than a single generic place :-(
Quoted 3 lines
I'll send a patch to the maintainer of the ISDN subsystem, but couldn't/shouldn't
Kconfigcomplain about the second declaration, instead of ignoring it? That would let us spot such errors much earlier.
HISAX_AVM_A1_PCMCIA should not appear twice in the same file - so please have this fixed.
Sam
Hi Sam,
Quoted 8 lines · Sam Ravnborg
Quoted 6 lines · Jean Delvare
Hi Yann, all,
HISAX_AVM_A1_PCMCIAis declared twice indrivers/isdn/hisax/Kconfig. As a bool both times, but with different defaults and dependencies.As far as I can see,
Kconfigsimply ignores the second declaration.No - the second declaration wins.
My testing indicates that the first declaration of HISAX_AVM_A1_PCMCIA wins. If I add a prompt to the second declarations, it shows up in the menu and the help prints both prompts each with its location, so the second declaration not completely ignored, but the dependencies are taken from the first declaration.
Quoted 9 lines
This is on purpose so an arch can override some generic symbol. This is used in a lot of places.
People often add definitions to all archs rahter than a single generic place :-(Quoted 3 lines
I'll send a patch to the maintainer of the ISDN subsystem, but couldn't/shouldn't
Kconfigcomplain about the second declaration, instead of ignoring it? That would let us spot such errors much earlier.
HISAX_AVM_A1_PCMCIAshould not appear twice in the same file - so please have this fixed.
Then can we at least have Kconfig complain when a symbol is defined more than once in a given file?
Thanks,
Signature · 2 lines
Jean Delvare SUSE L3 Support