From patchwork Mon Mar 20 08:16:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kyle Huey X-Patchwork-Id: 9634553 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1E7E1602D6 for ; Mon, 20 Mar 2017 16:49:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 10DF8267EC for ; Mon, 20 Mar 2017 16:49:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0478228459; Mon, 20 Mar 2017 16:49:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7FF62267EC for ; Mon, 20 Mar 2017 16:49:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756016AbdCTQte (ORCPT ); Mon, 20 Mar 2017 12:49:34 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:35344 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753213AbdCTIRO (ORCPT ); Mon, 20 Mar 2017 04:17:14 -0400 Received: by mail-pg0-f66.google.com with SMTP id g2so18481777pge.2 for ; Mon, 20 Mar 2017 01:17:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kylehuey.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=GXDQx/uhMZqtta1WkaA3TnCYqlBvOojJKT5+ht4AcEY=; b=jmZLKhktgkPlz8ZIgkBDfZHPwSSaOHaU8SbW4NeS9/yyW5gNxxbTkYrcRs5W1aCvI0 +UxULc90jxH7evjR4ejC7+YFk4Da2KxOE8aKEYSRGbpCliLR8AZXdMA7+oTFF2qVpvTX Rzk1pWp7SQPl2swPkr2TT2gmdHBxelYf/0Xjv8sBifw8Vf6qLksbnwWKtckXY3RZHm8h Yk9PU0ztuWR+2BzJMcGc+gHlWsXECReidWruqAfBkYk/2s4OVmQdu6cJ8xoEkUtYpWKN BDSb/RMM+PiLBvMU/YPWzOZ85NAyFIx0vASWQkMkaHervb2EEGl/NEt4CxQjCQiVUvu7 pP2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=GXDQx/uhMZqtta1WkaA3TnCYqlBvOojJKT5+ht4AcEY=; b=tQPwNJUVzroPt1VJw6nGnpyY+evOOVAcqfE0oH1dBfDwSuk5PCzJkGcZ/WHFeOFgZi IQJVZgxJVR3cCldtWnTVACDvWdElKOygUCAg77042cq6dy/jn3tLaSe5CXD52oBtvUm3 9xK/SVuNJdnn8BtpcchvldkhXG5BZvh5U83hkSMAfCGqRGkPM+XgthI3DQwuOVpd2NmY 2mxfFVwubBM9eDTXojNWyvjbgCbtLefRlg9v3Zlq0xzEVztWTtFDksHJ2uURvTe+DccM WDfXr8zaHP9qhDjF9vC9QcpCU4xZzCANf0DfPRZG1K88gFMqYFHSaPQ/H+1Kdpa69zSI /M7g== X-Gm-Message-State: AFeK/H2aA9v4qftYxpxDL8Yo9YGWPkcOF/fs4auS5MoiebM2yT6vbRYHY70s7uHi7K1ciw== X-Received: by 10.84.236.9 with SMTP id q9mr37608902plk.96.1489997825207; Mon, 20 Mar 2017 01:17:05 -0700 (PDT) Received: from minbar.home.kylehuey.com (c-50-150-100-179.hsd1.ca.comcast.net. [50.150.100.179]) by smtp.gmail.com with ESMTPSA id m20sm7792029pgd.32.2017.03.20.01.17.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 20 Mar 2017 01:17:04 -0700 (PDT) From: Kyle Huey X-Google-Original-From: Kyle Huey To: Robert O'Callahan , Thomas Gleixner , Andy Lutomirski , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, Paolo Bonzini , =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= , Jeff Dike , Richard Weinberger , Alexander Viro , Shuah Khan , Dave Hansen , Borislav Petkov , Peter Zijlstra , Boris Ostrovsky , Len Brown , "Rafael J. Wysocki" , Dmitry Safonov , David Matlack , Nadav Amit , Andi Kleen , Grzegorz Andrejczuk Cc: linux-kernel@vger.kernel.org, user-mode-linux-devel@lists.sourceforge.net, user-mode-linux-user@lists.sourceforge.net, linux-fsdevel@vger.kernel.org, linux-kselftest@vger.kernel.org, kvm@vger.kernel.org Subject: [PATCH v16 03/10] x86/arch_prctl/64: Use SYSCALL_DEFINE2 to define sys_arch_prctl Date: Mon, 20 Mar 2017 01:16:21 -0700 Message-Id: <20170320081628.18952-4-khuey@kylehuey.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170320081628.18952-1-khuey@kylehuey.com> References: <20170320081628.18952-1-khuey@kylehuey.com> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Use the SYSCALL_DEFINE2 macro instead of manually defining it. Signed-off-by: Kyle Huey --- arch/x86/kernel/process_64.c | 3 ++- arch/x86/um/syscalls_64.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/process_64.c b/arch/x86/kernel/process_64.c index 4377cfe8e449..bf9d7b6c0223 100644 --- a/arch/x86/kernel/process_64.c +++ b/arch/x86/kernel/process_64.c @@ -37,6 +37,7 @@ #include #include #include +#include #include #include @@ -621,7 +622,7 @@ long do_arch_prctl(struct task_struct *task, int option, unsigned long addr) return ret; } -long sys_arch_prctl(int option, unsigned long addr) +SYSCALL_DEFINE2(arch_prctl, int, option, unsigned long, addr) { return do_arch_prctl(current, option, addr); } diff --git a/arch/x86/um/syscalls_64.c b/arch/x86/um/syscalls_64.c index 3c2dd8768992..42369fa5421f 100644 --- a/arch/x86/um/syscalls_64.c +++ b/arch/x86/um/syscalls_64.c @@ -7,6 +7,7 @@ #include #include +#include #include #include /* XXX This should get the constants from libc */ #include @@ -74,7 +75,7 @@ long arch_prctl(struct task_struct *task, int option return ret; } -long sys_arch_prctl(int option, unsigned long addr) +SYSCALL_DEFINE2(arch_prctl, int, option, unsigned long, addr) { return arch_prctl(current, option, (unsigned long __user *) addr); }