Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=b2b77b233557bde22498a519f650b1ccc91ddb4e
Commit:     b2b77b233557bde22498a519f650b1ccc91ddb4e
Parent:     162dd3b9e41d2c7531bf09c580c8e82dbf01e7ba
Author:     Sam Ravnborg <[EMAIL PROTECTED]>
AuthorDate: Fri Jun 1 00:47:12 2007 -0700
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Fri Jun 1 08:18:30 2007 -0700

    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 <[EMAIL PROTECTED]>
    Cc: Len Brown <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
---
 drivers/acpi/asus_acpi.c    |    2 +-
 drivers/acpi/toshiba_acpi.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/acpi/asus_acpi.c b/drivers/acpi/asus_acpi.c
index b770dea..6d7d415 100644
--- a/drivers/acpi/asus_acpi.c
+++ b/drivers/acpi/asus_acpi.c
@@ -1357,7 +1357,7 @@ static struct backlight_ops asus_backlight_data = {
         .update_status  = set_brightness_status,
 };
 
-static void __exit asus_acpi_exit(void)
+static void asus_acpi_exit(void)
 {
        if (asus_backlight_device)
                backlight_device_unregister(asus_backlight_device);
diff --git a/drivers/acpi/toshiba_acpi.c b/drivers/acpi/toshiba_acpi.c
index 3906d47..1cfbecb 100644
--- a/drivers/acpi/toshiba_acpi.c
+++ b/drivers/acpi/toshiba_acpi.c
@@ -538,7 +538,7 @@ static struct backlight_ops toshiba_backlight_data = {
         .update_status  = set_lcd_status,
 };
 
-static void __exit toshiba_acpi_exit(void)
+static void toshiba_acpi_exit(void)
 {
        if (toshiba_backlight_device)
                backlight_device_unregister(toshiba_backlight_device);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to