linux-acpi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] x86/acpi: make "asmlinkage" part first thing in the function definition
@ 2020-03-03 20:41 Alexey Dobriyan
  2020-03-04  8:54 ` hpa
  2020-03-14  9:33 ` Rafael J. Wysocki
  0 siblings, 2 replies; 6+ messages in thread
From: Alexey Dobriyan @ 2020-03-03 20:41 UTC (permalink / raw)
  To: rjw, lenb; +Cc: tglx, mingo, bp, hpa, luto, x86, linux-kernel, linux-acpi

g++ insists that function declaration must start with extern "C"
(which asmlinkage expands to).

gcc doesn't care.

Signed-off-by: _Z6Alexeyv <adobriyan@gmail.com>
---

 arch/x86/kernel/acpi/sleep.c |    2 +-
 arch/x86/kernel/acpi/sleep.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

--- 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);
 }
--- a/arch/x86/kernel/acpi/sleep.h
+++ b/arch/x86/kernel/acpi/sleep.h
@@ -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);

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-03-15  1:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-03 20:41 [PATCH] x86/acpi: make "asmlinkage" part first thing in the function definition Alexey Dobriyan
2020-03-04  8:54 ` hpa
2020-03-04 10:04   ` Peter Zijlstra
2020-03-04 10:10     ` hpa
2020-03-05 18:41       ` Alexey Dobriyan
2020-03-14  9:33 ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).