From: Dan Aloni <da-x@gmx.net>
To: jt@hpl.hp.com
Cc: Linux kernel mailing list <linux-kernel@vger.kernel.org>,
Alan Cox <alan@lxorguk.ukuu.org.uk>,
Jeff Garzik <jgarzik@mandrakesoft.com>
Subject: Re: Link order madness :-(
Date: Sat, 1 Jun 2002 09:55:20 +0300 [thread overview]
Message-ID: <20020601065520.GA11951@callisto.yi.org> (raw)
In-Reply-To: <20020531172122.A27675@bougret.hpl.hp.com>
On Fri, May 31, 2002 at 05:21:22PM -0700, Jean Tourrilhes wrote:
> I was trying to make the IrDA stack work when compiled in the
> kernel in 2.5.X (as opposed to modular). In 2.4.X, it sort of work,
> but whoever made changes to the IrDA init in 2.5.X obviously didn't
> bother to check what he was doing and check his changes.
> So, I was trying to fix that, and I found a problem with
> kernel link order.
It is possible that recent kbuild changes caused that.
[snip]
> As both the random driver and the irda drivers are at the same
> init level, there is no way to enforce those dependancies. Currently,
> the IrDA drivers are loaded before the IrDA stack (== kaboom).
> Personally, I found it a bit strange the the random driver is
> initialised so late in the game when the whole networking code (at
> leasxt) depends on it.
>
> Please advise...
I remember something like this happened awhile back with the IDE driver,
trying to call a function in the cdrom driver before it was initialized.
There is a dirty workaround for this problem: Use a local static variable
to condition the modules' initialization, and make each module call
its init function inside every of its exported function, so this
'init-on-demand' will make sure the init code runs before the other
module's code.
BTW, does the new driver model addresses this problem?
--
Dan Aloni
da-x@gmx.net
next prev parent reply other threads:[~2002-06-01 6:56 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-01 0:21 Jean Tourrilhes
2002-06-01 6:55 ` Dan Aloni [this message]
2002-06-01 7:43 ` Kai Germaschewski
2002-06-03 17:14 ` Jean Tourrilhes
2002-06-03 17:29 ` Horst von Brand
2002-06-03 17:52 ` Nathan
2002-06-03 18:13 ` Thunder from the hill
2002-06-03 17:47 ` Dan Aloni
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=20020601065520.GA11951@callisto.yi.org \
--to=da-x@gmx.net \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=jgarzik@mandrakesoft.com \
--cc=jt@hpl.hp.com \
--cc=linux-kernel@vger.kernel.org \
/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®