aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/acpi/sleep.c
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2020-03-03 23:41:44 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2020-03-14 10:29:07 +0100
commitfa0fca68e1e64bc53fcb7cfd4bfac27c1b14a955 (patch)
treec54b97494b3b16b86d01458b0362b8688b44a7cd /arch/x86/kernel/acpi/sleep.c
parentLinux 5.6-rc5 (diff)
downloadlinux-dev-fa0fca68e1e64bc53fcb7cfd4bfac27c1b14a955.tar.xz
linux-dev-fa0fca68e1e64bc53fcb7cfd4bfac27c1b14a955.zip
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>
Diffstat (limited to 'arch/x86/kernel/acpi/sleep.c')
-rw-r--r--arch/x86/kernel/acpi/sleep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/acpi/sleep.c b/arch/x86/kernel/acpi/sleep.c
index 26b7256f590f..ed3b04483972 100644
--- a/arch/x86/kernel/acpi/sleep.c
+++ b/arch/x86/kernel/acpi/sleep.c
@@ -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);
}