Skip to content

Commit fa0fca6

Browse files
Alexey Dobriyanrafaeljw
authored andcommitted
x86/acpi: make "asmlinkage" part first thing in the function definition
g++ insists that function declaration must start with extern "C" (which asmlinkage expands to). gcc doesn't care. Signed-off-by: Alexey Dobriyan <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 2c523b3 commit fa0fca6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

arch/x86/kernel/acpi/sleep.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ unsigned long acpi_get_wakeup_address(void)
4343
*
4444
* Wrapper around acpi_enter_sleep_state() to be called by assmebly.
4545
*/
46-
acpi_status asmlinkage __visible x86_acpi_enter_sleep_state(u8 state)
46+
asmlinkage acpi_status __visible x86_acpi_enter_sleep_state(u8 state)
4747
{
4848
return acpi_enter_sleep_state(state);
4949
}

arch/x86/kernel/acpi/sleep.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ extern void do_suspend_lowlevel(void);
1919

2020
extern int x86_acpi_suspend_lowlevel(void);
2121

22-
acpi_status asmlinkage x86_acpi_enter_sleep_state(u8 state);
22+
asmlinkage acpi_status x86_acpi_enter_sleep_state(u8 state);

0 commit comments

Comments
 (0)