]> git.baikalelectronics.ru Git - kernel.git/commit
acpi: fix section mismatch warning in asus + toshiba
authorSam Ravnborg <sam@ravnborg.org>
Fri, 1 Jun 2007 07:47:12 +0000 (00:47 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 1 Jun 2007 15:18:30 +0000 (08:18 -0700)
commit1808477c7d5a328f44ebff89e9facfc58ded721f
tree0f38923870b9280bdfbe52591dda15e1035b1747
parent9c964df26a55e6d46b7ccff73b48f2cb6779b191
acpi: fix section mismatch warning in asus + toshiba

Fix following section mismatch warnings in acpi

WARNING: drivers/acpi/asus_acpi.o(.init.text+0xb7): Section mismatch: reference to .exit.text: (after 'init_module')
WARNING: o-i386/drivers/acpi/toshiba_acpi.o(.init.text+0x13a): Section mismatch: reference to .exit.text: (after 'init_module')

The exit function is used in the init function during an error codition.
As __exit may be discarded during link-time / run-time this is no good.
Do not mark the exit function __exit.

Note: This warning is only seen by my local copy of modpost
      but the change will soon hit upstream.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Len Brown <lenb@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/acpi/asus_acpi.c
drivers/acpi/toshiba_acpi.c