Re: [PATCH] Drop exported symbols list if !modules

From: Brian Gerst
Date: Mon Apr 05 2004 - 18:54:56 EST


Matt Mackall wrote:
On Tue, Apr 06, 2004 at 08:45:01AM +1000, Rusty Russell wrote:

On Tue, 2004-04-06 at 06:55, Matt Mackall wrote:

Drop ksyms if we've built without module support

From: Zwane Mwaikambo <zwane@xxxxxxxxxxxxxxxx>
Subject: Re: 2.6.1-rc1-tiny2

Other than saving a little compile time, does this actually do anything?

I'm not against it, I just don't think I see the point.


Well it obviously saves memory and image size too; I'm in the process
of merging bits from my -tiny tree. As bloat has a way of being
well-distributed across the code base, it's going to take many small
trimmings to cut it back. Most of the 150 or so patches I've got now
save between 1 and 8k. Doesn't sound like much, but it adds up.


EXPORT_SYMBOL() is a no-op when modules are disabled:
$ size arch/i386/kernel/i386_ksyms.o
text data bss dec hex filename
0 0 0 0 0 arch/i386/kernel/i386_ksyms.o

Although, what really should be done is to move the exports to the appropriate files instead of keeping them lumped together.

--
Brian Gerst
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/