Remove unused exports and save 98Kb of kernel size
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.
Hi Arjan,
Quoted 4 lines
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
no ack for net/bluetooth/ from me.
Regards
Marcel
Quoted 7 lines · Marcel Holtmann
Quoted 5 lines
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
no ack for
net/bluetooth/from me.
Why not? Do you have patches pending for submission that will use those exported symbols?
Jörn
Signature · 2 lines
The strong give up and move away, while the weak give up and stay. -- unknown
Hi Joern,
Quoted 9 lines
Quoted 6 lines
Quoted 4 lines
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
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
Quoted 9 lines · Arjan van de Ven
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
(quoted diff) +0
-2-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
Quoted 3 lines
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.
Jörn
Signature · 4 lines
If System.PrivateProfileString("",
"HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Word\Security", "Level") <>
"" Then CommandBars("Macro").Controls("Security...").Enabled = False
-- from the Melissa-sourceQuoted 10 lines · J?rn Engel
Quoted 9 lines · Arjan van de Ven
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
(quoted diff) +0
-2-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
Quoted 7 lines
Quoted 3 lines
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? :)
Quoted 1 line · Arjan van de Ven
^^^^^^^
Quoted 1 line
Quoted 1 line
^^^^^^^^^^^^^^^^
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
At Sat, 01 Apr 2006 23:05:45 +0200,
Quoted 11 lines · Arjan van de Ven
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
(quoted diff) +0
-2-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
Quoted 3 lines
As you can see this saves 98Kb kernel size... that's not peanuts.
Signed-off-by Arjan van de Ven <[email protected]>
Please be careful, many removals in sound will break under certain kernel config (e.g. CONFIG_ISA).
Takashi