OSDN Git Service

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)
commitfa0fca68e1e64bc53fcb7cfd4bfac27c1b14a955
treec54b97494b3b16b86d01458b0362b8688b44a7cd
parent2c523b344dfa65a3738e7039832044aa133c75fb
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>
arch/x86/kernel/acpi/sleep.c
arch/x86/kernel/acpi/sleep.h