From: Christoph Hellwig <hch@infradead.org>
To: Andrew Morton <akpm@osdl.org>
Cc: James Bottomley <James.Bottomley@steeleye.com>,
linux-kernel@vger.kernel.org, rusty@rustcorp.com.au
Subject: Re: lib.a causing modules not to load
Date: Sat, 8 Nov 2003 08:51:52 +0000 [thread overview]
Message-ID: <20031108085152.B18856@infradead.org> (raw)
In-Reply-To: <20031107203419.7d0de676.akpm@osdl.org>; from akpm@osdl.org on Fri, Nov 07, 2003 at 08:34:19PM -0800
On Fri, Nov 07, 2003 at 08:34:19PM -0800, Andrew Morton wrote:
> James Bottomley <James.Bottomley@steeleye.com> wrote:
> >
> > I think this has been mentioned before, but I just ran across it again
> > recently. The problem is that if the only reference to a routine in
> > lib.a is in a module, then it never gets compiled into the kernel, and
> > the module won't load.
> >
> > In 2.6.0-test9 this is shown by compiling both ext2 and ext3 as
> > modules. Since they're the only things to refer to percpu_counter_mod
> > which is in lib.a in an SMP system.
>
> How about we just link that function into the kernel and be done with it?
> We'll waste a few bytes on SMP machines which have neither ext2 nor ext3
> linked-in or loaded as modules, but that doesn't sound very important...
>
> (We don't have a kernel/random-support-stuff.c, but we have
> mm/random-support-stuff.c which for some reason is called mm/swap.c, so
> I put it there).
Well, this solves the problem for this particular case, but not other
stuff in lib for other situations. We should just stop building lib
as archive and conditionalize building bigger and rarely used stuff in
there using Kconfig symbols.
next prev parent reply other threads:[~2003-11-08 8:51 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-07 16:21 James Bottomley
2003-11-07 16:27 ` James Bottomley
2003-11-08 4:34 ` Andrew Morton
2003-11-08 8:51 ` Christoph Hellwig [this message]
2003-11-08 15:16 ` James Bottomley
2003-11-17 2:47 ` Rusty Russell
2003-11-18 16:25 ` James Bottomley
2003-11-19 0:06 ` 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=20031108085152.B18856@infradead.org \
--to=hch@infradead.org \
--cc=James.Bottomley@steeleye.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rusty@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®