From: Felipe W Damasio <felipewd@terra.com.br>
To: Linux-kernel <linux-kernel@vger.kernel.org>
Cc: Linus Torvalds <torvalds@transmeta.com>
Subject: __devexit_p(x) macro
Date: Wed, 31 Jul 2002 09:53:37 +0000 [thread overview]
Message-ID: <20020731095337.2d4ae927.felipewd@terra.com.br> (raw)
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 */
reply other threads:[~2002-07-31 12:50 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020731095337.2d4ae927.felipewd@terra.com.br \
--to=felipewd@terra.com.br \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®