Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp4293939ybf; Wed, 4 Mar 2020 00:57:43 -0800 (PST) X-Google-Smtp-Source: ADFU+vvAACIHWprLbNGNswUNKwYFucxWvKw8UhIcFewzL01HouH1ompLXFBX/Cay/M3NO0fNOsQs X-Received: by 2002:a05:6830:1e86:: with SMTP id n6mr1428729otr.177.1583312263286; Wed, 04 Mar 2020 00:57:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583312263; cv=none; d=google.com; s=arc-20160816; b=syA5JlJKpMPm2fTg8RAyZCoxfgrYQgfaexAOaVVH0+nyx5/vu/cEBfHHIsiZAFb+/Z Y6kQSISrklVaP3trt7KyEBf09sOwQPnT4D94xdVulNqkUrmpuXFjFYxOhl2rGlJ/LDct +DrToNModY+FA0RZTtNxzSnAvHreMAi1hAJVRCqqSPOunsylfTVS8I9IeSdFOIibY/ua nIKVp7G12LFxiattAYUhnOPTK9dlh43r2Hhpy5O0RItqBLDxUyxpOEdUItpLpJTpAIyJ +lC6aWDOvocPQJmowlpIYDjN7dHix+bPNnCsO7KsfwWRODtVggxK2Ur7oOHE2bzfLZc0 0xxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:from:cc:to:subject :content-transfer-encoding:mime-version:references:in-reply-to :user-agent:date:dkim-signature:dkim-filter; bh=utclo29XAiv2dCDxoewItG7aKxdh43V5IBOk+FLmUjY=; b=bSnLkdZVfWz20JI5XFtJHIZ+8JggEBglc2xFNn29KEr/Kt4tNXkZ/ydk6DJ0eUEF1C UmzJLp3Td2p6qO+b4wW98Zsgayw3khiNLLSkcCcU0Z+WuYTIB3BJdlT4jSsmDCJjEZ10 SFV8w9nRNmgwXLRxLlrNm6eZDutCyk5Rk+/cJiBWdNufQNeRIV+FUm1EczJP/p0E3D4s 3OG6PF3S5cHi7kBt/dBcNHfewr5h71SfSN9oW14eq8CSCKnyliXSL95PLuKoBe1lVcH1 1dL8LIHg0QNV+VnkDM2Shj78Q8Gu3pyNvaOmN9cftdLOsda0SuK6R7dO9lxVVs2RdIkt AI5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@zytor.com header.s=2020022001 header.b=cXEyWHpJ; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=zytor.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y13si757508oto.33.2020.03.04.00.57.31; Wed, 04 Mar 2020 00:57:43 -0800 (PST) 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; dkim=fail header.i=@zytor.com header.s=2020022001 header.b=cXEyWHpJ; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=zytor.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387744AbgCDI5X (ORCPT + 99 others); Wed, 4 Mar 2020 03:57:23 -0500 Received: from terminus.zytor.com ([198.137.202.136]:59771 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727734AbgCDI5X (ORCPT ); Wed, 4 Mar 2020 03:57:23 -0500 Received: from [IPv6:2601:646:8600:3281:d841:929b:f37:3a31] ([IPv6:2601:646:8600:3281:d841:929b:f37:3a31]) (authenticated bits=0) by mail.zytor.com (8.15.2/8.15.2) with ESMTPSA id 0248uuI6301245 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Wed, 4 Mar 2020 00:56:57 -0800 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.zytor.com 0248uuI6301245 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2020022001; t=1583312217; bh=utclo29XAiv2dCDxoewItG7aKxdh43V5IBOk+FLmUjY=; h=Date:In-Reply-To:References:Subject:To:CC:From:From; b=cXEyWHpJQo074KfzwRKYbKann7+FAimOqGQv6QUi4OIfOaa9rTLXfqJLtS+wYT5mj uyHFTop4R7A/l9kT2sBZqG/37sZaT/LkV+b0WxBGHDhx7uZWy9REvhHf4anYRPTAHV TxTXNJ7ey+1FhWjJbRPyXMAg1jkSgw7phFlp5EhiHfp6+lXmXrXYxijRzGVGfbHJov +rlGKs6OwvOTqFsmNJzFXuqbq4+nnUzRl4Qv1+wohaAq0B47aRrV8geqZ88r/wxlKN Iv4Cp+wJqmVyxQxhxSuEbxWfggUa/cv4c86ZGwccl31fygbpOcwUT7WS9TEZsM4PgX EeARcAxxx3zxg== Date: Wed, 04 Mar 2020 00:54:09 -0800 User-Agent: K-9 Mail for Android In-Reply-To: <20200303204144.GA9913@avx2> References: <20200303204144.GA9913@avx2> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PATCH] x86/acpi: make "asmlinkage" part first thing in the function definition To: Alexey Dobriyan , rjw@rjwysocki.net, lenb@kernel.org CC: tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, luto@kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org From: hpa@zytor.com Message-ID: <9947D7CB-B9CD-47E0-BC5E-C7FC3A81FC7B@zytor.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On March 3, 2020 12:41:44 PM PST, Alexey Dobriyan w= rote: >g++ insists that function declaration must start with extern "C" >(which asmlinkage expands to)=2E > >gcc doesn't care=2E > >Signed-off-by: _Z6Alexeyv >--- > > arch/x86/kernel/acpi/sleep=2Ec | 2 +- > arch/x86/kernel/acpi/sleep=2Eh | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > >--- a/arch/x86/kernel/acpi/sleep=2Ec >+++ b/arch/x86/kernel/acpi/sleep=2Ec >@@ -43,7 +43,7 @@ unsigned long acpi_get_wakeup_address(void) > * > * Wrapper around acpi_enter_sleep_state() to be called by assmebly=2E > */ >-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=2Eh >+++ b/arch/x86/kernel/acpi/sleep=2Eh >@@ -19,4 +19,4 @@ extern void do_suspend_lowlevel(void); >=20 > extern int x86_acpi_suspend_lowlevel(void); >=20 >-acpi_status asmlinkage x86_acpi_enter_sleep_state(u8 state); >+asmlinkage acpi_status x86_acpi_enter_sleep_state(u8 state); Are you building the kernel with C++?! --=20 Sent from my Android device with K-9 Mail=2E Please excuse my brevity=2E