Skip to contentSkip to conversation

Remove unused exports and save 98Kb of kernel size

DISCUSSION Arjan van de Ven 5 participants 7 messages Apr 1, 2006 – Apr 7, 2006

lore
Share & tools
lore
#2 lore raw
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

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

Signature · 2 lines
The strong give up and move away, while the weak give up and stay.
-- unknown
#3 lore raw

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

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

#4 lore raw
In reply to Arjan van de Ven
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.

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-source
#5 lore raw
Quoted 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.

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

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

#6 lore raw
In reply to Arjan van de Ven

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.

Please be careful, many removals in sound will break under certain kernel config (e.g. CONFIG_ISA).

Takashi