Re: Remove unused exports and save 98Kb of kernel size

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <[email protected]>
> 
> 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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux