Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pata_platform: __pata_platform_remove() shouldn't be in discard section

--
UPD include/linux/compile.h
`___pata_platform_remove' referenced in section `__ksymtab_gpl' of
drivers/built-in.o: defined in discarded section `.devexit.text' of
drivers/built-in.o
make: *** [.tmp_vmlinux1] Error 1
--

__pata_platform_remove() should not be in discarded section
__pata_platform_remove(struct device *dev) is invoked in both
pata_platform.c and pata_of_platform.c by reomve function defined in
discarded section ".devexit.text". An exported function should not be put
into discarded section.

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>

authored by

Sonic Zhang and committed by
Jeff Garzik
78a7ba47 1564a187

+1 -1
+1 -1
drivers/ata/pata_platform.c
··· 186 186 * A platform bus ATA device has been unplugged. Perform the needed 187 187 * cleanup. Also called on module unload for any active devices. 188 188 */ 189 - int __devexit __pata_platform_remove(struct device *dev) 189 + int __pata_platform_remove(struct device *dev) 190 190 { 191 191 struct ata_host *host = dev_get_drvdata(dev); 192 192