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 <adobriyan@gmail.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
Родитель
2c523b344d
Коммит
fa0fca68e1
|
@ -43,7 +43,7 @@ unsigned long acpi_get_wakeup_address(void)
|
||||||
*
|
*
|
||||||
* Wrapper around acpi_enter_sleep_state() to be called by assmebly.
|
* 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);
|
return acpi_enter_sleep_state(state);
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,4 +19,4 @@ extern void do_suspend_lowlevel(void);
|
||||||
|
|
||||||
extern int x86_acpi_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);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче