All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] __devexit_p macro
@ 2002-08-02  9:24 Felipe W Damasio
  2002-08-02 12:33 ` Dave Jones
  0 siblings, 1 reply; 4+ messages in thread
From: Felipe W Damasio @ 2002-08-02  9:24 UTC (permalink / raw)
  To: Linux-kernel; +Cc: trivial

	Hi,

	This patch defines  __devexit_p when CONFIG_HOTPLUG || MODULE, instead of
when just CONFIG_HOTPLUG is defined.

	This is needed for some net drivers (at least) that use "remove_one"
(which use unregister_netdev), allowing the driver to be re-installed.

	This is the same behaviour that 2.4.

	Patch against 2.5.30

	Please consider pulling it from:

http://cscience.org/~coqueiro/linux/patches-fwd/2.5/init.h-__devexit_p.patch

Felipe

--- ./include/linux/init.h.orig	Fri Aug  2 09:15:44 2002
+++ ./include/linux/init.h	Fri Aug  2 09:06:39 2002
@@ -177,12 +177,16 @@
 #define __devinitdata
 #define __devexit
 #define __devexitdata
-#define __devexit_p(x)  &(x)
 #else
 #define __devinit __init
 #define __devinitdata __initdata
 #define __devexit __exit
 #define __devexitdata __exitdata
+#endif
+
+#ifdef MODULE || CONFIG_HOTPLUG
+#define __devexit_p(x)  &(x)
+#else
 #define __devexit_p(x)  0
 #endif
 

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-08-02 13:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-02  9:24 [PATCH] __devexit_p macro Felipe W Damasio
2002-08-02 12:33 ` Dave Jones
2002-08-02 13:46   ` Keith Owens
2002-08-02 13:54     ` Keith Owens

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.