Re: [PATCH] __devexit_p macro

Keith Owens (kaos@ocs.com.au)
Fri, 02 Aug 2002 23:46:39 +1000


On Fri, 2 Aug 2002 14:33:49 +0200,
Dave Jones <davej@suse.de> wrote:
>On Fri, Aug 02, 2002 at 09:24:56AM +0000, Felipe W Damasio wrote:
> > +#ifdef MODULE || CONFIG_HOTPLUG
> > +#define __devexit_p(x) &(x)
> > +#else
> > #define __devexit_p(x) 0
> > #endif
>
>Instead of making this a maze of #if/else's, you can acheive
>the same effect with the following patch that has been in my
>tree for a few months.. (hand pasted, may not apply cleanly)

Better still, copy the end of 2.5.19-rc5/include/linux/init.h to
2.5.30, from #ifdef CONFIG_HOTPLUG onwards. There is no point in
having slight differences between the 2.4 and 2.5 versions, ATM they
should be the same.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/