Skip to content

Commit

Permalink
toshiba_acpi: fix section mismatch in allyesconfig
Browse files Browse the repository at this point in the history
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')

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Cc: Len Brown <len.brown@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Randy Dunlap authored and Linus Torvalds committed Jun 16, 2007
1 parent 3e903e7 commit b1d93de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/acpi/toshiba_acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ static acpi_status __init add_device(void)
return AE_OK;
}

static acpi_status __exit remove_device(void)
static acpi_status remove_device(void)
{
ProcItem *item;

Expand Down

0 comments on commit b1d93de

Please sign in to comment.