• Arnd Bergmann's avatar
    x86/power: Fix swsusp_arch_resume prototype · 328008a7
    Arnd Bergmann authored
    The declaration for swsusp_arch_resume marks it as 'asmlinkage', but the
    definition in x86-32 does not, and it fails to include the header with the
    declaration. This leads to a warning when building with
    link-time-optimizations:
    
    kernel/power/power.h:108:23: error: type of 'swsusp_arch_resume' does not match original declaration [-Werror=lto-type-mismatch]
     extern asmlinkage int swsusp_arch_resume(void);
                           ^
    arch/x86/power/hibernate_32.c:148:0: note: 'swsusp_arch_resume' was previously declared here
     int swsusp_arch_resume(void)
    
    This moves the declaration into a globally visible header file and fixes up
    both x86 definitions to match it.
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
    Cc: Len Brown <len.brown@intel.com>
    Cc: Andi Kleen <ak@linux.intel.com>
    Cc: Nicolas Pitre <nico@linaro.org>
    Cc: linux-pm@vger.kernel.org
    Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
    Cc: Pavel Machek <pavel@ucw.cz>
    Cc: Bart Van Assche <bart.vanassche@wdc.com>
    Link: https://lkml.kernel.org/r/20180202145634.200291-2-arnd@arndb.de
    328008a7
Name
Last commit
Last update
..
Kconfig Loading commit data...
Makefile Loading commit data...
autosleep.c Loading commit data...
console.c Loading commit data...
hibernate.c Loading commit data...
main.c Loading commit data...
power.h Loading commit data...
poweroff.c Loading commit data...
process.c Loading commit data...
qos.c Loading commit data...
snapshot.c Loading commit data...
suspend.c Loading commit data...
suspend_test.c Loading commit data...
swap.c Loading commit data...
user.c Loading commit data...
wakelock.c Loading commit data...