From: Felipe W Damasio <felipewd@terra.com.br>
To: Linux-kernel <linux-kernel@vger.kernel.org>
Cc: trivial@rustcorp.com.au
Subject: [PATCH] __devexit_p macro
Date: Fri, 2 Aug 2002 09:24:56 +0000 [thread overview]
Message-ID: <20020802092456.23a3c49a.felipewd@terra.com.br> (raw)
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
next reply other threads:[~2002-08-02 12:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-02 9:24 Felipe W Damasio [this message]
2002-08-02 12:33 ` Dave Jones
2002-08-02 13:46 ` Keith Owens
2002-08-02 13:54 ` Keith Owens
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=20020802092456.23a3c49a.felipewd@terra.com.br \
--to=felipewd@terra.com.br \
--cc=linux-kernel@vger.kernel.org \
--cc=trivial@rustcorp.com.au \
/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®