Sam Ravnborg 2ad913babd [SPARC64]: Fix section error in sparcspkr
With a sparc64 defconfig modified to set CONFIG_HOTPLUG=n
the following error happened during link of vmlinux:

local symbol 0: discarded in section `.devexit.text' from drivers/built-in.o
local symbol 1: discarded in section `.devexit.text' from drivers/built-in.o

(The error message above is from kbuild.git but it happens in mainline too)

The error happens becase there is a reference from .text/.data to a
function marked __devexit. With CONFIG_HOTPLUG=n all code marked
__devexit are discarded and the linker complains.

It was tracked down to sparcspkr.c which were missing __devexit_p()
around the function pointers.

Unfortunately modpost did not catch this since modpost do not warn
about references from .data to .devexit from variables named *_driver.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-01-21 22:34:31 -08:00
..
2008-01-14 08:52:22 -08:00
2008-01-14 08:52:22 -08:00
2007-10-29 17:27:50 -04:00
2008-01-14 21:53:31 +01:00
2008-01-11 11:42:07 -08:00
2007-12-31 23:11:11 +00:00
2007-11-05 15:12:31 -08:00
2007-11-29 09:24:53 -08:00
2007-12-12 20:01:00 +01:00
2007-12-23 12:54:37 -08:00
2007-12-17 19:28:15 -08:00
2008-01-21 19:39:41 -08:00
2007-10-23 15:49:54 +10:00