Received: by 10.213.65.68 with SMTP id h4csp872339imn; Wed, 14 Mar 2018 02:43:04 -0700 (PDT) X-Google-Smtp-Source: AG47ELs9dZZ66siPGOQF1assyRYqX/nXTn1LFA5+mYfSJ2Udcv7TbfWn1XpA0mCFN4NBygQ7M9ta X-Received: by 10.98.27.10 with SMTP id b10mr3667812pfb.121.1521020584893; Wed, 14 Mar 2018 02:43:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521020584; cv=none; d=google.com; s=arc-20160816; b=BlgdFS7L9YSnYYm3WJ3QUs5HVSYrz3VNMlwXCXcW3cZQ3nYOmqk6+FXZP9iqlm/cdh MaQpPivmcFwemklthl03EE9f2KsQkQC9F5zTAPQLBAJ9pZPvc8NOKXLYtYggsd8OTXeR /bT6j+0tx6fsErLMKz2mtb9q4PssEvXOh+BPrPQB/TzvnxTqTxRS8Sf9edcHcvlQ+7Wu ZxluBanG7PF72pRea1HlQ1VTh/vchlinCpYPicFaLYlWgYNFJJtliEpLWsU1WCuXnBZx nrRrQlPHrbzAis0TOIQucu34AsAsH4FemKbgit4+k3nUMC85TE/IR4BBZhfMSUyVVFld oEvw== 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 :content-id:content-language:accept-language:message-id:date :thread-index:thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=qISr5BDGRWwV6jCOOv5Op8nOjLATvagCw09aWqhxzXA=; b=w7ylwCO58boxIB0SEnWVd72mwuBgOBv9lJTIokH7ZQe2ESvBbCaTzMjzmJ7hSk7gYr Zzlm5AE2EOQLkJ/orgv9pExeGjIqjV8O+Hueb7UjkIh167As00ky4/eFxY3363vlBom7 ur2MK1SqcRqCXBqufiT2H2N4Y90wEAk6z/94ybNUK+c7w8aOZ9WlMihWLtB6mFqIASY8 16Hp2w9FQVDBR8hJ8mcvyG3X3LSGYDWTOOVX+r1ePkkQ4AUVqQXphLU7NDnMon/Bwd1n ZO6ve3NRjOAPR8OZ17i7TW24ZdENtySbO6NACP445dCE3Jr5FVRVreXm9rj0TTAhhENY 6o/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.co.uk header.s=amazon201209 header.b=vzBCRSGV; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.co.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v189si1585949pgb.374.2018.03.14.02.42.50; Wed, 14 Mar 2018 02:43:04 -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; dkim=pass header.i=@amazon.co.uk header.s=amazon201209 header.b=vzBCRSGV; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.co.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751437AbeCNJl4 (ORCPT + 99 others); Wed, 14 Mar 2018 05:41:56 -0400 Received: from smtp-fw-9102.amazon.com ([207.171.184.29]:47370 "EHLO smtp-fw-9102.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750855AbeCNJlx (ORCPT ); Wed, 14 Mar 2018 05:41:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.co.uk; i=@amazon.co.uk; q=dns/txt; s=amazon201209; t=1521020513; x=1552556513; h=from:to:cc:subject:date:message-id:content-id: mime-version:content-transfer-encoding; bh=qISr5BDGRWwV6jCOOv5Op8nOjLATvagCw09aWqhxzXA=; b=vzBCRSGVbLtTLRLheL/XBcXyQe0ra5A0Pr/0tbj1BNnBlr2ZGgawATbe eFGiwZpyA7zBWuNkA34VCgiYsA52a6RgXO7uyIhS4f++QMC7bmrZROkFB FWXi2BX4AWUc4eSRSMbrIT/q79VXXGAgRZ7CPb6MLAWmTkb3VeXC3azsr 0=; X-IronPort-AV: E=Sophos;i="5.47,469,1515456000"; d="scan'208";a="599674396" Received: from sea3-co-svc-lb6-vlan3.sea.amazon.com (HELO email-inbound-relay-1d-9ec21598.us-east-1.amazon.com) ([10.47.22.38]) by smtp-border-fw-out-9102.sea19.amazon.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 14 Mar 2018 09:41:49 +0000 Received: from EX13MTAUEA001.ant.amazon.com (iad55-ws-svc-p15-lb9-vlan2.iad.amazon.com [10.40.159.162]) by email-inbound-relay-1d-9ec21598.us-east-1.amazon.com (8.14.7/8.14.7) with ESMTP id w2E9fhd8084831 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Wed, 14 Mar 2018 09:41:45 GMT Received: from EX13D02EUB004.ant.amazon.com (10.43.166.221) by EX13MTAUEA001.ant.amazon.com (10.43.61.243) with Microsoft SMTP Server (TLS) id 15.0.1236.3; Wed, 14 Mar 2018 09:41:43 +0000 Received: from EX13D02EUB001.ant.amazon.com (10.43.166.150) by EX13D02EUB004.ant.amazon.com (10.43.166.221) with Microsoft SMTP Server (TLS) id 15.0.1236.3; Wed, 14 Mar 2018 09:41:42 +0000 Received: from EX13D02EUB001.ant.amazon.com ([10.43.166.150]) by EX13D02EUB001.ant.amazon.com ([10.43.166.150]) with mapi id 15.00.1236.000; Wed, 14 Mar 2018 09:41:42 +0000 From: "Tautschnig, Michael" To: "x86@kernel.org" , "linux-api@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Jaswinder Singh , Andi Kleen , Dominik Brodowski Subject: [PATCH] x86/sigreturn: use SYSCALL_DEFINE0 Thread-Topic: [PATCH] x86/sigreturn: use SYSCALL_DEFINE0 Thread-Index: AQHTu3ioXWZ/5N/YjEqO1zxD9uUWOA== Date: Wed, 14 Mar 2018 09:41:42 +0000 Message-ID: <9C9981F4-0E5E-42A7-8788-70F3DEAD258D@amazon.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.43.165.101] Content-Type: text/plain; charset="us-ascii" Content-ID: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org All definitions of syscalls in x86 except for those patched here have already been using the appropriate SYSCALL_DEFINE*. Signed-off-by: Michael Tautschnig Cc: Thomas Gleixner Cc: Ingo Molnar Cc: H. Peter Anvin Cc: Jaswinder Singh Cc: Andi Kleen Cc: Dominik Brodowski --- arch/x86/kernel/signal.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/signal.c b/arch/x86/kernel/signal.c index b9e00e8..40ba242 100644 --- a/arch/x86/kernel/signal.c +++ b/arch/x86/kernel/signal.c @@ -25,6 +25,7 @@ #include #include #include +#include #include #include @@ -601,7 +602,7 @@ static int x32_setup_rt_frame(struct ksignal *ksig, * Do a signal return; undo the signal stack. */ #ifdef CONFIG_X86_32 -asmlinkage unsigned long sys_sigreturn(void) +SYSCALL_DEFINE0(sigreturn) { struct pt_regs *regs =3D current_pt_regs(); struct sigframe __user *frame; @@ -633,7 +634,7 @@ asmlinkage unsigned long sys_sigreturn(void) } #endif /* CONFIG_X86_32 */ -asmlinkage long sys_rt_sigreturn(void) +SYSCALL_DEFINE0(rt_sigreturn) { struct pt_regs *regs =3D current_pt_regs(); struct rt_sigframe __user *frame; -- 2.7.3.AMZN Amazon Web Services UK Limited. Registered in England and Wales with regist= ration number 08650665 with its registered office at 1 Principal Place, Wor= ship Street, London, EC2A 2FA, United Kingdom.