On Sat, Dec 29, 2007 at 01:41:23AM +0100, Jan Engelhardt wrote: > > On Dec 29 2007 02:09, Adrian Bunk wrote: > >On Sat, Dec 29, 2007 at 12:45:12AM +0100, Jan Engelhardt wrote: > >> Turn CONFIG_FC, CONFIG_FDDI, CONFIG_HIPPI and CONFIG_TR into tristate > >> so they can be built as modules. This will allow CONFIG_LLC to be > >> built as a module too, overall reducing the core kernel image size. > >>... > > > >Just an example of code you have to fix if you do this: > > > >$ grep -r "#ifdef CONFIG_TR" net/ > > Ah, thank you for reminding me. For lec.c, would it be ok to do > > #if defined(CONFIG_TR) || defined(CONFIG_TR_MODULE) > # define WITH_TR 1 > #endif >...
#if defined(CONFIG_TR) || (defined(CONFIG_TR_MODULE) && defined(MODULE)) Otherwise stuff like calling alloc_trdev() will cause build errors with CONFIG_TR=m, CONFIG_ATM_LANE=y. cu Adrian -- "Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html