Fix link-time breakage

From: Peter Chubb <peterc_at_gelato.unsw.edu.au>
Date: 2006-12-05 12:27:02
Hi,
	I'm seeing:
 `acpiphp_glue_exit' referenced in section `.init.text' of
drivers/built-in.o: defined in discarded section `.exit.text' of
drivers/built-in.o

when trying to compile an IA64 kernel with PCI hotplug enabled.

I suggest this patch:

Signed-off-by: Peter Chubb <peterc@gelato.unsw.edu.au>

Index: linux-2.6-import/drivers/pci/hotplug/acpiphp_glue.c
===================================================================
--- linux-2.6-import.orig/drivers/pci/hotplug/acpiphp_glue.c	2006-12-05 12:14:46.891069194 +1100
+++ linux-2.6-import/drivers/pci/hotplug/acpiphp_glue.c	2006-12-05 12:14:51.887039743 +1100
@@ -1682,7 +1682,7 @@ int __init acpiphp_glue_init(void)
  *
  * This function frees all data allocated in acpiphp_glue_init()
  */
-void __exit acpiphp_glue_exit(void)
+void  acpiphp_glue_exit(void)
 {
 	acpi_pci_unregister_driver(&acpi_pci_hp_driver);
 }

-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Tue Dec 05 12:27:21 2006

This archive was generated by hypermail 2.1.8 : 2006-12-05 12:27:47 EST