Skip to contentSkip to conversation

pata: fix bug - __pata_platform_remove() should not be in discarded section

PATCH New Bryan Wu 1 participant 1 message Jan 7, 2009 libata

lore
Share & tools
lore

Bryan Wu

author
#0 lore raw

PATCH 1/1 pata: fix bug - __pata_platform_remove() should not be in discarded section

From: Sonic Zhang <[email protected]>

--
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.

---
 drivers/ata/pata_platform.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/ata/pata_platform.c +1 -1
index 6afa07a..d8d743a 100644
@@ -186,7 +186,7 @@ EXPORT_SYMBOL_GPL(__pata_platform_probe);
  *	A platform bus ATA device has been unplugged. Perform the needed
  *	cleanup. Also called on module unload for any active devices.
  */
-int __devexit __pata_platform_remove(struct device *dev)
+int __pata_platform_remove(struct device *dev)
 {
 	struct ata_host *host = dev_get_drvdata(dev);
 
Signature · 1 line
1.5.6