• Sam Ravnborg's avatar
    acpi: fix section mismatch warning in asus + toshiba · b2b77b23
    Sam Ravnborg authored
    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: default avatarSam Ravnborg <sam@ravnborg.org>
    Cc: Len Brown <lenb@kernel.org>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    b2b77b23
asus_acpi.c 37.7 KB