[lkml]   [2001]   [May]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] net #3
"Paul Gortmaker wrote:"
> Andrzej Krzysztofowicz wrote:
> >
> > The following patch fixes some ISA PnP #ifdefs (enable modular,
> > disable when non-available) for 3c509 and smc-ultra.
> > -#ifdef CONFIG_ISAPNP
> > +#if defined(CONFIG_ISAPNP) || (defined(CONFIG_ISAPNP_MODULE) && defined(MODULE))
> Hrrm. AFAICT the token CONFIG_ISAPNP_MODULE will never be defined. :-)

If IS defined by config subsystem when

Just mark config option and test it.

$ grep ISAPNP include/linux/autoconf.h


> Regardless, we can just toss the #ifdefs altogether. They aren't strictly
> required as appropriate stubs exist in linux/isapnp.h and that is what
> they are there for. (I'd recommend this for 2.5, not 2.4 though.)
> Granted, the CONFIG_ISAPNP buys you a slight reduction in driver
> size (even over the stubs) which somewhat seemed worthwhile in the
> past. But most of it is __init anyway, and for 2.5 I'd argue that the
> readability and lack of ifdefs outweighs the slight size change.

When __init for modules will be implemented ?

Andrzej M. Krzysztofowicz
phone (48)(58) 347 14 61
Faculty of Applied Phys. & Math., Technical University of Gdansk

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:54    [W:0.046 / U:0.360 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site