mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Torsten Kaiser" <just.for.lkml@googlemail.com>
To: "Michael Buesch" <mb@bu3sch.de>
Cc: "Adrian Bunk" <bunk@kernel.org>, "Bodo Eggert" <7eggert@gmx.de>,
	"Jan Engelhardt" <jengelh@computergmbh.de>,
	devzero@web.de, linux-kernel@vger.kernel.org,
	netdev@vger.kernel.org
Subject: Re: [PATCH] Force UNIX domain sockets to be built in
Date: Mon, 31 Dec 2007 17:11:11 +0100	[thread overview]
Message-ID: <64bb37e0712310811r34423ff5q2e9516d02f6247de@mail.gmail.com> (raw)
In-Reply-To: <200712311659.14847.mb@bu3sch.de>

On Dec 31, 2007 4:59 PM, Michael Buesch <mb@bu3sch.de> wrote:
> On Monday 31 December 2007 16:55:57 Torsten Kaiser wrote:
> > One thing I always wondered about in this discussion about wasted
> > EXPORT_SYMBOL's:
> > Shouldn't it be possible to garbage collect these?
> >
> > depmod already contains code to analyze all modules to create a
> > dependency tree. It should not be too difficult to extend it to create
> > a list of all symbols that really are used by the current modules.
> > Everything else could be stripped to save space.
> >
> > The problem with that:
> > * out-of-tree modules would break if they don't get lucky to only use
> > the remaining symbol. I would not see this as a problem, if the help
> > text of the garbage-collect-option would contain a note like "don't
> > enable this if you want out-of-tree modules".
> > * if you later change your .config to include additional modules you
> > might need to rebuild vmlinux and reboot into the new kernel.
> > Currently you can probably build and load new modules without a
> > reboot. (for example: usb drivers)
>
> I'd say the practical advantage to the user would be almost zero.
> Which distribution is going to enable this option and defacto
> banning external modules?

I would default this option to not remove used symbols, because it
could break something.
For distributions it could be used in both ways:
* enabled -> only "distro approved" modules can be loaded
* disabled -> works as of now

For every other user who compiles own kernels without external modules
(Not including out-of-tree drivers that get patched into the kernel
code! Only modules that get compiled later independent from the kernel
build!) it will save space.

If this space would not matter there would be no need to be so hard on
currently unused EXPORT_SYMBOLs.

Torsten

  parent reply	other threads:[~2007-12-31 16:11 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-31 12:09 Bodo Eggert
2007-12-31 12:20 ` David Miller
2007-12-31 14:03   ` Bodo Eggert
2007-12-31 19:38     ` Al Viro
2008-01-01  3:45       ` Bodo Eggert
2008-01-01  3:48         ` David Miller
2008-01-01  4:48           ` Bodo Eggert
2008-01-01  5:01         ` Theodore Tso
2008-01-02 10:25           ` Herbert Xu
2008-01-02 12:26             ` Bodo Eggert
2007-12-31 12:24 ` Adrian Bunk
2007-12-31 13:26   ` Bodo Eggert
2007-12-31 14:42     ` Adrian Bunk
2007-12-31 15:19       ` Bodo Eggert
2007-12-31 15:34         ` Jan Engelhardt
2007-12-31 17:43           ` Patrick Mau
2007-12-31 22:20             ` Jan Engelhardt
2007-12-31 17:51         ` Adrian Bunk
2007-12-31 18:05         ` Adrian Bunk
2007-12-31 15:55       ` Torsten Kaiser
2007-12-31 15:59         ` Michael Buesch
2007-12-31 16:01           ` Alan Cox
2007-12-31 16:17             ` Torsten Kaiser
2007-12-31 16:38               ` Alan Cox
2007-12-31 17:18                 ` Michael Buesch
2007-12-31 18:37                   ` Torsten Kaiser
2007-12-31 19:05                     ` Michael Buesch
2007-12-31 16:11           ` Torsten Kaiser [this message]
2007-12-31 13:23 devzero

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=64bb37e0712310811r34423ff5q2e9516d02f6247de@mail.gmail.com \
    --to=just.for.lkml@googlemail.com \
    --cc=7eggert@gmx.de \
    --cc=bunk@kernel.org \
    --cc=devzero@web.de \
    --cc=jengelh@computergmbh.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mb@bu3sch.de \
    --cc=netdev@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®