Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1119773ybh; Sat, 14 Mar 2020 18:34:57 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsw8wjf5grVCmTEFwg0qU+Mlo7EsE23ghp7WWGespRZ1ipJ317wEjHZywIr22C6+QFlruQP X-Received: by 2002:aca:aa55:: with SMTP id t82mr12741447oie.147.1584236097450; Sat, 14 Mar 2020 18:34:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584236097; cv=none; d=google.com; s=arc-20160816; b=Ua3MFQYctVUgDMGWFLaSF0YyWDrcDBZezZhBo1zzCHDTeZ0CX/2Q50/hfKjjzCn+qR BYdYNbx1UnOF1dEEcpcIlMSHAKsIPGAYWeFez3mSLqGbpSsNRXnHtSpw8PwVrOAe2TVd /Yh01XoDlqcukPzzAkExA3dulK5Vs2+y0Sh+n+fjAGSJe0IFpgjLQQz4uSJPB3u9iffu 9KJD6QdxBlL5Du93Nr7ISADR66+4zVlscwcoQpDCYEvousysDAwIBH2hWMPi/+VOadzh FQjjTCRXTpUeLEo0ku14tArIm1jQgxvXp5Pi3xBkdFyCuQhqk1F9CsnhgGDPwk/dujrB BLxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=nzWRNczuoLoxaJ2O4BUeHgpihXi6i+t0jqWSULSg5cc=; b=HhXjblwIp62TjwD7H1f0dURGeyzz7fsZzEkx2JyASpFwSSPnOnVOEQrXEzB6SWDQDn 3Dkvkv/C3GG/fv7T8oLGrMYH8bq39l8M5ILFH/j3Fhntnak876BA8JEjntbn7Nakv+WM kWBjn38XJOPfz6vm8faC9RE6kuD/AJe9PnlGgmCj9QaJkb9QnN70thEa607kLcWkoPIs WDKf4Jg5zlWHzyQEZEvxfQpXWdcWLHVkipXStyaCG2TYeTPlYg36hyLbXeD7VD6wQXAp CQ5+YQX7ToAGuUFS6ivfXMYItw04GCoEav7CxgbK8F+Kbts6lZtufgwSvu3kPlYUD56E JCZA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c130si7340053oig.98.2020.03.14.18.34.45; Sat, 14 Mar 2020 18:34:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726599AbgCOBdf (ORCPT + 99 others); Sat, 14 Mar 2020 21:33:35 -0400 Received: from cloudserver094114.home.pl ([79.96.170.134]:48091 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726125AbgCOBde (ORCPT ); Sat, 14 Mar 2020 21:33:34 -0400 Received: from 185.80.35.16 (185.80.35.16) (HELO kreacher.localnet) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer 0.83.341) id ab1996ee3b51f96d; Sat, 14 Mar 2020 10:33:32 +0100 From: "Rafael J. Wysocki" To: Alexey Dobriyan Cc: lenb@kernel.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, luto@kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org Subject: Re: [PATCH] x86/acpi: make "asmlinkage" part first thing in the function definition Date: Sat, 14 Mar 2020 10:33:31 +0100 Message-ID: <1684981.ixsy79CQbx@kreacher> In-Reply-To: <20200303204144.GA9913@avx2> References: <20200303204144.GA9913@avx2> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday, March 3, 2020 9:41:44 PM CET Alexey Dobriyan wrote: > g++ insists that function declaration must start with extern "C" > (which asmlinkage expands to). > > gcc doesn't care. > > Signed-off-by: Alexey Dobriyan > --- > > 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); > Applied as 5.7 material, thanks!