linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* __devexit_p(x) macro
@ 2002-07-31  9:53 Felipe W Damasio
  0 siblings, 0 replies; only message in thread
From: Felipe W Damasio @ 2002-07-31  9:53 UTC (permalink / raw)
  To: Linux-kernel; +Cc: Linus Torvalds

	Hi,

	Since a lot of net drivers use the "remove" function wrapped with the
__devexit_p macro (which defines the address ONLY when CONFIG_HOTPLUG is
set), isn't the below patch needed for when drivers are compiled as
modules, so that the remove function can be set?

Felipe

--- ./init.h.orig	Wed Jul 31 09:43:44 2002
+++ ./init.h	Wed Jul 31 09:47:32 2002
@@ -183,7 +183,11 @@
 #define __devinitdata __initdata
 #define __devexit __exit
 #define __devexitdata __exitdata
+#ifdef CONFIG_MODULE
+#define __devexit_p(x)  &(x)
+#else
 #define __devexit_p(x)  0
-#endif
+#endif /* CONFIG_MODULE */
+#endif /* CONFIG_HOTPLUG */
 
 #endif /* _LINUX_INIT_H */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-07-31 12:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-31  9:53 __devexit_p(x) macro Felipe W Damasio

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).