Skip to contentSkip to conversation

does CONFIG_UNUSED_SYMBOLS have any value anymore?

DISCUSSION Robert P. J. Day 3 participants 7 messages Jul 19, 2007

lore
Share & tools
lore
#0 lore raw

just curious -- under kernel hacking, there is the option
UNUSED_SYMBOLS to "Enable unused/obsolete exported symbols" using EXPORT_UNUSED_SYMBOL[_GPL]. reads the help text (in part):

"This option is provided temporarily to provide a transition period in case some external kernel module needs one of these symbols anyway."

but it's not clear if that means that it was a *one-time* transition aid which is now unnecessary, or whether it's an *ongoing* aid which might be used at any time. currently, there are no invocations of EXPORT_UNUSED_SYMBOL[_GPL] anywhere in the tree. so does that mean this feature can be tossed? or might it still be used every so often?

rday

Signature · 7 lines
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://fsdev.net/wiki/index.php?title=Main_Page
========================================================================
#1 lore raw

Robert P. J. Day wrote:
...

Quoted 5 lines

it's not clear if that means that it was a *one-time* transition aid which is now unnecessary, or whether it's an *ongoing* aid which might be used at any time. currently, there are no invocations of EXPORT_UNUSED_SYMBOL[_GPL] anywhere in the tree. so does that mean this feature can be tossed? or might it still be used every so often?

git-blame (or qgit, which I actually used) points from this part of lib/Kconfig.debug to the following chunk in Documentation/feature-removal-schedule.txt:

What: Unused EXPORT_SYMBOL/EXPORT_SYMBOL_GPL exports
(temporary transition config option provided until then) The transition config option will also be removed at the same time.
When: before 2.6.19
Why: Unused symbols are both increasing the size of the kernel binary
and are often a sign of "wrong API"
Who: Arjan van de Ven <[email protected]>

Signature · 3 lines
Stefan Richter
-=====-=-=== -=== =--==
http://arcgraph.de/sr/
#2 lore raw
Quoted 7 lines · Stefan Richter

Robert P. J. Day wrote:
...

Quoted 5 lines

it's not clear if that means that it was a *one-time* transition aid which is now unnecessary, or whether it's an *ongoing* aid which might be used at any time. currently, there are no invocations of EXPORT_UNUSED_SYMBOL[_GPL] anywhere in the tree. so does that mean this feature can be tossed? or might it still be used every so often?

it's one of those pieces of infrastructure that get used from time to time to phase out symbol exports... we should be more agressive about that; about 1/3rd of the exports is not used by anything in linux, yet each symbol costs about 100 bytes of memory at runtime.

#3 lore raw
Quoted 9 lines · Arjan van de Ven
Quoted 7 lines · Stefan Richter

Robert P. J. Day wrote:
...

Quoted 5 lines

it's not clear if that means that it was a *one-time* transition aid which is now unnecessary, or whether it's an *ongoing* aid which might be used at any time. currently, there are no invocations of EXPORT_UNUSED_SYMBOL[_GPL] anywhere in the tree. so does that mean this feature can be tossed? or might it still be used every so often?

Quoted 4 lines

it's one of those pieces of infrastructure that get used from time to time to phase out symbol exports... we should be more agressive about that; about 1/3rd of the exports is not used by anything in linux, yet each symbol costs about 100 bytes of memory at runtime.

ok, so maybe its removal file entry should be deleted if it's going to hang around. your call.

rday

Signature · 7 lines
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://fsdev.net/wiki/index.php?title=Main_Page
========================================================================
#4 lore raw
Quoted 10 lines · Robert P. J. Day
Quoted 8 lines · Arjan van de Ven
Quoted 7 lines · Stefan Richter

Robert P. J. Day wrote:
...

Quoted 5 lines

it's not clear if that means that it was a *one-time* transition aid which is now unnecessary, or whether it's an *ongoing* aid which might be used at any time. currently, there are no invocations of EXPORT_UNUSED_SYMBOL[_GPL] anywhere in the tree. so does that mean this feature can be tossed? or might it still be used every so often?

Quoted 8 lines
Quoted 4 lines

it's one of those pieces of infrastructure that get used from time to time to phase out symbol exports... we should be more agressive about that; about 1/3rd of the exports is not used by anything in linux, yet each symbol costs about 100 bytes of memory at runtime.

ok, so maybe its removal file entry should be deleted if it's going to hang around. your call.

the removal entry is/was for the symbols *marked*, not for the infrastructure....

#5 lore raw
Quoted 2 lines · Arjan van de Ven

the removal entry is/was for the symbols *marked*, not for the infrastructure....

ah, gotcha. so the infrastructure itself is still useful from time to time, then. ok.

rday

Signature · 7 lines
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://fsdev.net/wiki/index.php?title=Main_Page
========================================================================
#6 lore raw
In reply to Stefan Richter
Quoted 12 lines · Stefan Richter

Robert P. J. Day wrote:
...

Quoted 5 lines

it's not clear if that means that it was a *one-time* transition aid which is now unnecessary, or whether it's an *ongoing* aid which might be used at any time. currently, there are no invocations of EXPORT_UNUSED_SYMBOL[_GPL] anywhere in the tree. so does that mean this feature can be tossed? or might it still be used every so often?

git-blame (or qgit, which I actually used) points from this part of lib/Kconfig.debug to the following chunk in Documentation/feature-removal-schedule.txt:

Quoted 7 lines

What: Unused EXPORT_SYMBOL/EXPORT_SYMBOL_GPL exports
(temporary transition config option provided until then) The transition config option will also be removed at the same time.
When: before 2.6.19
Why: Unused symbols are both increasing the size of the kernel binary
and are often a sign of "wrong API"
Who: Arjan van de Ven <[email protected]>

argh. i should have checked there first. sorry for the noise. i can patch that baby out unless arjan wants to do it.

rday

Signature · 7 lines
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://fsdev.net/wiki/index.php?title=Main_Page
========================================================================