From: Matt Reppert <arashi@arashi.yi.org>
To: Jeff Garzik <jgarzik@pobox.com>
Cc: linux-kernel@vger.kernel.org, trivial@rustcorp.com.au
Subject: [PATCH] mii module broken under new scheme
Date: Tue, 19 Nov 2002 11:50:41 -0600 [thread overview]
Message-ID: <20021119115041.11ece7dc.arashi@arashi.yi.org> (raw)
drivers/net/mii.c doesn't export module init/cleanup functions. That means it
can't be loaded under the new module scheme. This patch adds do-nothing
functions for it, which allows it to load. (8139too depends on mii, so
without this I don't have network.)
Matt
--- drivers/net/mii.c~no 2002-11-19 11:41:20.000000000 -0600
+++ drivers/net/mii.c 2002-11-19 11:39:06.000000000 -0600
@@ -348,3 +348,19 @@
EXPORT_SYMBOL(mii_check_media);
EXPORT_SYMBOL(generic_mii_ioctl);
+static void __init mii_init_module (void)
+{
+#ifdef MODULE
+ printk (KERN_INFO "mii" "\n");
+#endif
+
+ return 0;
+}
+
+
+static void __exit mii_cleanup_module (void)
+{
+}
+
+module_init(mii_init_module);
+module_exit(mii_cleanup_module);
next reply other threads:[~2002-11-19 17:42 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-19 17:50 Matt Reppert [this message]
2002-11-19 17:51 ` Jeff Garzik
2002-11-19 18:15 ` Matt Reppert
2002-11-19 18:37 ` Jeff Garzik
2002-11-21 21:34 ` Bill Davidsen
2002-11-19 21:38 ` Rusty Russell
2002-11-19 19:29 ` Alan Cox
2002-12-02 4:51 ` Rusty Russell
2002-11-19 18:14 Petr Vandrovec
2002-11-19 18:42 ` Jeff Garzik
2002-11-19 19:46 ` David Woodhouse
2002-11-19 18:21 Petr Vandrovec
2002-11-19 18:44 ` Jeff Garzik
2002-11-19 22:07 ` Rusty Russell
2002-11-19 21:49 ` Rusty Russell
2002-11-19 22:23 Rusty Russell
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=20021119115041.11ece7dc.arashi@arashi.yi.org \
--to=arashi@arashi.yi.org \
--cc=jgarzik@pobox.com \
--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
Powered by JetHome