OpenVZ Forum


Home » Mailing lists » Devel » [PATCH] Move kasprintf.o to obj-y
Re: [PATCH] Move kasprintf.o to obj-y [message #20630 is a reply to message #20624] Mon, 24 September 2007 08:09 Go to previous messageGo to previous message
Christoph Hellwig is currently offline  Christoph Hellwig
Messages: 59
Registered: April 2006
Member
On Mon, Sep 24, 2007 at 09:59:49AM +0200, Sam Ravnborg wrote:
> > Please kill lib-y while you're at it.  It's useless and a constant
> > source of pain like this.
> Kernel-bloat is another "constant source of pain".
> But the troubles are that increased blot does not result in compiler erros.
> 
> And your proposal to kil lib-y is a counter-act here.

Killing lib-y doesn't create kernel bloat if done right.  Just introduce
proper Kconfig dependencies for the truely optional parts.  But if you
look at the list of objects in lib-y you'll see that they fall in basically
three categories:

 (1) always used by core code - should be obj-y
 (2) generic implementation for arch-specific functionality, should be
     guarded by Kconfig for clarity reasons anyway
 (3) library code often but not always used by code that's not always
     built in.  Here we run into the move to obj-y to avoid compiler
     warning when used as module issue all the time.  Adding a CONFIG
     for the bigger onces actually avoids bloat over obj-y here, and
     when it's small enough obj-y is a lot safer in the presence of
     modular users

Really, trying to use the old static library use on demand concept simply
doesn't fit the way the kernel is built with it's modules and dependencies.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [PATCH] change inotifyfs magic as the same magic is used for futexfs
Next Topic: [patch 1/3][netns] add a reference to the netns for timewait
Goto Forum:
  


Current Time: Sat Jul 12 20:14:17 GMT 2025

Total time taken to generate the page: 0.01980 seconds