Skip to contentSkip to conversation

toshica_acpi: fix section mismatch in allyesconfig

PATCH New Randy Dunlap 1 participant 1 message Jun 6, 2007 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 toshica_acpi: fix section mismatch in allyesconfig

From: Randy Dunlap <[email protected]>

Fix section error (allyesconfig). The exit function is called from init, so functions that are called by the exit function cannot be marked __exit.

WARNING: drivers/built-in.o(.text+0xe5bc6): Section mismatch: reference to .exit.
text: (between 'toshiba_acpi_exit' and 'hci_raw')

---
 drivers/acpi/toshiba_acpi.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/acpi/toshiba_acpi.c +1 -1
@@ -524,7 +524,7 @@ static acpi_status __init add_device(voi
 	return AE_OK;
 }
 
-static acpi_status __exit remove_device(void)
+static acpi_status remove_device(void)
 {
 	ProcItem *item;