All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sam Ravnborg <sam@ravnborg.org>
To: Rusty Russell <rusty@rustcorp.com.au>
Cc: lkml - Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Andrew Morton <akpm@linux-foundation.org>
Subject: Re: lib-y vs EXPORT_SYMBOL: who wins?
Date: Tue, 25 Sep 2007 08:13:28 +0200	[thread overview]
Message-ID: <20070925061328.GA10029@uranus.ravnborg.org> (raw)
In-Reply-To: <1190696865.27805.317.camel@localhost.localdomain>

On Tue, Sep 25, 2007 at 03:07:44PM +1000, Rusty Russell wrote:
> Various files under lib/ are linked into a .a so they only get linked if
> needed.  But many of these functions are also EXPORT_SYMBOL()ed.
> 
> This doesn't really make sense: if it's exported it really needs to be
> present.  Certain configurations can hit this (lguest uses kasprintf,
> and can be a module).
> 
> We could do something hacky and try to figure out if any modules need
> the symbols, which screws modules built later, but is no worse than a
> CONFIG_-based solution.
> 
> Or to we just move all the exported functions out of the .a?


I am all for killing lib-y altogether. But do not want to sacrify
kernel bloat for this.
hch suggested a bit of Kconfig tricekery and that seems
like an OK plan to me.
But I'm not in a position to do the detective work at the moment -
feed up with oter stuff for now.

	Sam

      reply	other threads:[~2007-09-25  6:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-25  5:07 lib-y vs EXPORT_SYMBOL: who wins? Rusty Russell
2007-09-25  6:13 ` Sam Ravnborg [this message]

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=20070925061328.GA10029@uranus.ravnborg.org \
    --to=sam@ravnborg.org \
    --cc=akpm@linux-foundation.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.