From: Andrew Morton <andrewm@uow.edu.au>
To: Frank Davis <fdavis112@juno.com>
Cc: linux-kernel@vger.kernel.org, torvalds@transmeta.com
Subject: Re: test13-pre6 compile error..network.o
Date: Sat, 30 Dec 2000 21:19:28 +1100 [thread overview]
Message-ID: <3A4DB6B0.F5037661@uow.edu.au> (raw)
In-Reply-To: <20001230.030356.-209335.1.fdavis112@juno.com>
> Hello,
> I received the following error while compiling test13-pre6 .
>
> net/network.o: In function `lecd_attach':
> net/network.o(.text+0x5ce78): undefined reference to `prepare_trdev'
> net/network.o(.text+0x5ce88): undefined reference to `prepare_etherdev'
> net/network.o(.text+0x5cee3): undefined reference to `publish_netdev'
> make: *** [vmlinux] Error 1
This is caused by some cross-patch leakage between Alan and Linus.
This should fix it:
--- linux-2.4.0-test13-pre6/net/atm/lec.c Sat Dec 30 18:38:55 2000
+++ linux-akpm/net/atm/lec.c Sat Dec 30 21:17:11 2000
@@ -772,10 +772,10 @@
size = sizeof(struct lec_priv);
#ifdef CONFIG_TR
if (is_trdev)
- dev_lec[i] = prepare_trdev(NULL, size);
+ dev_lec[i] = init_trdev(NULL, size);
else
#endif
- dev_lec[i] = prepare_etherdev(NULL, size);
+ dev_lec[i] = init_etherdev(NULL, size);
if (!dev_lec[i])
return -ENOMEM;
@@ -783,7 +783,6 @@
priv->is_trdev = is_trdev;
sprintf(dev_lec[i]->name, "lec%d", i);
lec_init(dev_lec[i]);
- publish_netdev(dev_lec[i]);
} else {
priv = dev_lec[i]->priv;
if (priv->lecd)
@@ -858,7 +857,7 @@
for (i = 0; i < MAX_LEC_ITF; i++) {
if (dev_lec[i] != NULL) {
priv = (struct lec_priv *)dev_lec[i]->priv;
- unregister_netdev(dev_lec[i]);
+ unregister_trdev(dev_lec[i]);
kfree(dev_lec[i]);
dev_lec[i] = NULL;
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
next prev parent reply other threads:[~2000-12-30 10:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-12-30 8:03 Frank Davis
2000-12-30 10:19 ` Andrew Morton [this message]
2000-12-30 16:43 ` Alan Cox
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=3A4DB6B0.F5037661@uow.edu.au \
--to=andrewm@uow.edu.au \
--cc=fdavis112@juno.com \
--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®