x86/acpi: make "asmlinkage" part first thing in the function definition
authorAlexey Dobriyan <adobriyan@gmail.com>
Tue, 3 Mar 2020 20:41:44 +0000 (23:41 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 14 Mar 2020 09:29:07 +0000 (10:29 +0100)
g++ insists that function declaration must start with extern "C"
(which asmlinkage expands to).

gcc doesn't care.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
arch/x86/kernel/acpi/sleep.c
arch/x86/kernel/acpi/sleep.h

index 26b7256f590fd78a537aec79e2132d1f184c5487..ed3b044839728b07a4f78afb71a78da0ecfb3608 100644 (file)
@@ -43,7 +43,7 @@ unsigned long acpi_get_wakeup_address(void)
  *
  * Wrapper around acpi_enter_sleep_state() to be called by assmebly.
  */
-acpi_status asmlinkage __visible x86_acpi_enter_sleep_state(u8 state)
+asmlinkage acpi_status __visible x86_acpi_enter_sleep_state(u8 state)
 {
        return acpi_enter_sleep_state(state);
 }
index d06c2079b6c142447beb4e05b2facaff70f7831c..171a40c74db68e52b04613b000529d213a59837c 100644 (file)
@@ -19,4 +19,4 @@ extern void do_suspend_lowlevel(void);
 
 extern int x86_acpi_suspend_lowlevel(void);
 
-acpi_status asmlinkage x86_acpi_enter_sleep_state(u8 state);
+asmlinkage acpi_status x86_acpi_enter_sleep_state(u8 state);