Re: [PATCH] sparc64: fix section error in sparcspkr

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Sam Ravnborg <sam@xxxxxxxxxxxx>
Date: Mon, 21 Jan 2008 22:50:36 +0100

> 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@xxxxxxxxxxxx>

Applied, thanks Sam.
-
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux