lkml.org 
[lkml]   [2006]   [Apr]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Remove unused exports and save 98Kb of kernel size
On Mon, Apr 03, 2006 at 04:10:27PM +0200, J?rn Engel wrote:
> On Sat, 1 April 2006 23:05:45 +0200, Arjan van de Ven wrote:
> >
> > I've made a patch to remove all EXPORT_SYMBOL's that aren't used in the
> > kernel; it's too big for the list so it can be found at
> >
> > http://www.kernelmorons.org/unexport.patch
> >
> > -rwxr-xr-x 1 root root 34476416 Apr 1 21:59 vmlinux.before
> > -rwxr-xr-x 1 root root 34378112 Apr 1 22:48 vmlinux.after
> >
> > As you can see this saves 98Kb kernel size... that's not peanuts.
> >
> > Signed-off-by: Arjan van de Ven <arjan@kernelmorons.org>
>
> Is there a reason that you always leave the newline instead of
> removing it as well? Looks script-generated, so it should be a simple
> change for the script to remove the newline as well.

Because it wasn't worth fixing for a silly April Fool's joke? :)

> On Sat, 1 April 2006 23:05:45 +0200, Arjan van de Ven wrote:
^^^^^^^
> > http://www.kernelmorons.org/unexport.patch
^^^^^^^^^^^^^^^^

Of course, there's a serious side to this patch. Who knows how many
of these exported symbols are actually used? I can imagine a config
option to turn off these symbols which is shipped as on by default for
a few weeks, in order to flush out people who are actually using these
symbols.

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

\
 
 \ /
  Last update: 2006-04-07 02:44    [W:0.056 / U:0.140 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site