* Remove unused exports and save 98Kb of kernel size
@ 2006-04-01 21:05 Arjan van de Ven
2006-04-01 21:18 ` Marcel Holtmann
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Arjan van de Ven @ 2006-04-01 21:05 UTC (permalink / raw)
To: linux-kernel
Hi,
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>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Remove unused exports and save 98Kb of kernel size
2006-04-01 21:05 Remove unused exports and save 98Kb of kernel size Arjan van de Ven
@ 2006-04-01 21:18 ` Marcel Holtmann
2006-04-03 14:06 ` Jörn Engel
2006-04-03 14:10 ` Jörn Engel
2006-04-03 16:38 ` Takashi Iwai
2 siblings, 1 reply; 7+ messages in thread
From: Marcel Holtmann @ 2006-04-01 21:18 UTC (permalink / raw)
To: Arjan van de Ven; +Cc: linux-kernel
Hi Arjan,
> 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
no ack for net/bluetooth/ from me.
Regards
Marcel
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Remove unused exports and save 98Kb of kernel size
2006-04-01 21:18 ` Marcel Holtmann
@ 2006-04-03 14:06 ` Jörn Engel
2006-04-04 16:00 ` Marcel Holtmann
0 siblings, 1 reply; 7+ messages in thread
From: Jörn Engel @ 2006-04-03 14:06 UTC (permalink / raw)
To: Marcel Holtmann; +Cc: Arjan van de Ven, linux-kernel
On Sat, 1 April 2006 23:18:58 +0200, Marcel Holtmann 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
>
> no ack for net/bluetooth/ from me.
Why not? Do you have patches pending for submission that will use
those exported symbols?
Jörn
--
The strong give up and move away, while the weak give up and stay.
-- unknown
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Remove unused exports and save 98Kb of kernel size
2006-04-01 21:05 Remove unused exports and save 98Kb of kernel size Arjan van de Ven
2006-04-01 21:18 ` Marcel Holtmann
@ 2006-04-03 14:10 ` Jörn Engel
2006-04-07 0:41 ` Valerie Henson
2006-04-03 16:38 ` Takashi Iwai
2 siblings, 1 reply; 7+ messages in thread
From: Jörn Engel @ 2006-04-03 14:10 UTC (permalink / raw)
To: Arjan van de Ven; +Cc: linux-kernel
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.
Jörn
--
If System.PrivateProfileString("",
"HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Word\Security", "Level") <>
"" Then CommandBars("Macro").Controls("Security...").Enabled = False
-- from the Melissa-source
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Remove unused exports and save 98Kb of kernel size
2006-04-01 21:05 Remove unused exports and save 98Kb of kernel size Arjan van de Ven
2006-04-01 21:18 ` Marcel Holtmann
2006-04-03 14:10 ` Jörn Engel
@ 2006-04-03 16:38 ` Takashi Iwai
2 siblings, 0 replies; 7+ messages in thread
From: Takashi Iwai @ 2006-04-03 16:38 UTC (permalink / raw)
To: Arjan van de Ven; +Cc: linux-kernel
At Sat, 01 Apr 2006 23:05:45 +0200,
Arjan van de Ven wrote:
>
> Hi,
>
> 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>
Please be careful, many removals in sound will break under certain
kernel config (e.g. CONFIG_ISA).
Takashi
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Remove unused exports and save 98Kb of kernel size
2006-04-03 14:06 ` Jörn Engel
@ 2006-04-04 16:00 ` Marcel Holtmann
0 siblings, 0 replies; 7+ messages in thread
From: Marcel Holtmann @ 2006-04-04 16:00 UTC (permalink / raw)
To: Jörn Engel; +Cc: Arjan van de Ven, linux-kernel
Hi Joern,
> > > 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
> >
> > no ack for net/bluetooth/ from me.
>
> Why not? Do you have patches pending for submission that will use
> those exported symbols?
yes, I do.
Regards
Marcel
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Remove unused exports and save 98Kb of kernel size
2006-04-03 14:10 ` Jörn Engel
@ 2006-04-07 0:41 ` Valerie Henson
0 siblings, 0 replies; 7+ messages in thread
From: Valerie Henson @ 2006-04-07 0:41 UTC (permalink / raw)
To: J?rn Engel; +Cc: Arjan van de Ven, linux-kernel
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
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2006-04-07 0:42 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-01 21:05 Remove unused exports and save 98Kb of kernel size Arjan van de Ven
2006-04-01 21:18 ` Marcel Holtmann
2006-04-03 14:06 ` Jörn Engel
2006-04-04 16:00 ` Marcel Holtmann
2006-04-03 14:10 ` Jörn Engel
2006-04-07 0:41 ` Valerie Henson
2006-04-03 16:38 ` Takashi Iwai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox