Received: by 10.192.165.148 with SMTP id m20csp631842imm; Wed, 2 May 2018 06:23:48 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqpmfwZ0Yjyr4K93RZXFcSaWlba8OgcsJC/FNsvPVYfZr6RIiRE+I5jbJfpIaO/5dl0jIXr X-Received: by 2002:a17:902:1665:: with SMTP id g92-v6mr20375782plg.195.1525267428235; Wed, 02 May 2018 06:23:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525267428; cv=none; d=google.com; s=arc-20160816; b=0SWHnkuet+QXyjH1Is8gPcFmbS+GGS8Q5e7WxmKkv/8JVMRJzHONE8HaUKsfGNH/vR rMZVjoeMd2C85vFMBldOCBcUdZgGwTqq9GhS1EoXkX2prka5/nfQPU1mCsu5u+sUqW+F E8miYQ/brtkcq4JYp8Gt5T0Zc5X8NOmsaYFfBlNs3/7HvJntNyUhBtvNfgkNVTq4ho5H jvyMcftskVO2dUyORMwSMZ3KnivC47C49CbK4B1EqDNJZBWeDrE0tWBMjvX0R+tSDA3X PGF/wfzZvVNboMdWoWwr1buPA/LjeHEkQ5xq7C3IxcQE8vADKSzHlNhpadK8Jb6NTIVD 2wzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=uyEI4xJTH7oGCaKp1ESBnAu+/8S0zFbL6sAdiUyr0Yg=; b=zF09vQv44QSEW3QvK54z0Edu8qWsi1GkZts472tsJOkgNCJI/xuygpSI/DKszqXPp/ ZXOVqB/Sdbaj+D8VPLMDxXI4wjNY8RuMOXqNAdtqsaFMJwTMG6LUe92diCvJMlZolo8h DoXzH9S8V0zTSyr4pDUwrY7wy0uU64O5SWc6WGJIL2DAGuVG4X57WAqXd5D64LJ2XRWZ U7xJ9qrtYrxMG/QLVhBAG6JP+JHmQeFRtt1Ju5Si/LAbnTPf5bSuJdndF8MEtxhEBZuz 5bHUjYlh41xQ/BohMXNmDjqgn2EJjCSWQZBlWl4Yap6/23epdHRCcI527mGg5SKKIuQq 2Dwg== 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 v1-v6si666944ply.409.2018.05.02.06.23.33; Wed, 02 May 2018 06:23:48 -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 S1751559AbeEBNVI (ORCPT + 99 others); Wed, 2 May 2018 09:21:08 -0400 Received: from ozlabs.org ([203.11.71.1]:41731 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751391AbeEBNVG (ORCPT ); Wed, 2 May 2018 09:21:06 -0400 Received: by ozlabs.org (Postfix, from userid 1034) id 40bf6n2mZbz9s0n; Wed, 2 May 2018 23:21:04 +1000 (AEST) From: Michael Ellerman To: linuxppc-dev@ozlabs.org Cc: viro@zeniv.linux.org.uk, linux-kernel@vger.kernel.org Subject: [PATCH 1/6] powerpc/syscalls: Switch trivial cases to SYSCALL_DEFINE Date: Wed, 2 May 2018 23:20:46 +1000 Message-Id: <20180502132051.28861-1-mpe@ellerman.id.au> X-Mailer: git-send-email 2.14.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Al Viro Signed-off-by: Al Viro --- arch/powerpc/kernel/pci_32.c | 6 +++--- arch/powerpc/kernel/pci_64.c | 4 ++-- arch/powerpc/mm/subpage-prot.c | 4 +++- arch/powerpc/platforms/cell/spu_syscalls.c | 3 ++- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/arch/powerpc/kernel/pci_32.c b/arch/powerpc/kernel/pci_32.c index 85ad2f78b889..af36e46c3ed6 100644 --- a/arch/powerpc/kernel/pci_32.c +++ b/arch/powerpc/kernel/pci_32.c @@ -16,6 +16,7 @@ #include #include #include +#include #include #include @@ -283,7 +284,8 @@ pci_bus_to_hose(int bus) * Note that the returned IO or memory base is a physical address */ -long sys_pciconfig_iobase(long which, unsigned long bus, unsigned long devfn) +SYSCALL_DEFINE3(pciconfig_iobase, long, which, + unsigned long, bus, unsigned long, devfn) { struct pci_controller* hose; long result = -EOPNOTSUPP; @@ -307,5 +309,3 @@ long sys_pciconfig_iobase(long which, unsigned long bus, unsigned long devfn) return result; } - - diff --git a/arch/powerpc/kernel/pci_64.c b/arch/powerpc/kernel/pci_64.c index 15ce0306b092..dff28f903512 100644 --- a/arch/powerpc/kernel/pci_64.c +++ b/arch/powerpc/kernel/pci_64.c @@ -203,8 +203,8 @@ void pcibios_setup_phb_io_space(struct pci_controller *hose) #define IOBASE_ISA_IO 3 #define IOBASE_ISA_MEM 4 -long sys_pciconfig_iobase(long which, unsigned long in_bus, - unsigned long in_devfn) +SYSCALL_DEFINE3(pciconfig_iobase, long, which, unsigned long, in_bus, + unsigned long, in_devfn) { struct pci_controller* hose; struct pci_bus *tmp_bus, *bus = NULL; diff --git a/arch/powerpc/mm/subpage-prot.c b/arch/powerpc/mm/subpage-prot.c index f14a07c2fb90..9d16ee251fc0 100644 --- a/arch/powerpc/mm/subpage-prot.c +++ b/arch/powerpc/mm/subpage-prot.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include @@ -185,7 +186,8 @@ static void subpage_mark_vma_nohuge(struct mm_struct *mm, unsigned long addr, * in a 2-bit field won't allow writes to a page that is otherwise * write-protected. */ -long sys_subpage_prot(unsigned long addr, unsigned long len, u32 __user *map) +SYSCALL_DEFINE3(subpage_prot, unsigned long, addr, + unsigned long, len, u32 __user *, map) { struct mm_struct *mm = current->mm; struct subpage_prot_table *spt = &mm->context.spt; diff --git a/arch/powerpc/platforms/cell/spu_syscalls.c b/arch/powerpc/platforms/cell/spu_syscalls.c index 5e6e0bad6db6..263413a34823 100644 --- a/arch/powerpc/platforms/cell/spu_syscalls.c +++ b/arch/powerpc/platforms/cell/spu_syscalls.c @@ -26,6 +26,7 @@ #include #include #include +#include #include @@ -90,7 +91,7 @@ SYSCALL_DEFINE4(spu_create, const char __user *, name, unsigned int, flags, return ret; } -asmlinkage long sys_spu_run(int fd, __u32 __user *unpc, __u32 __user *ustatus) +SYSCALL_DEFINE3(spu_run,int, fd, __u32 __user *, unpc, __u32 __user *, ustatus) { long ret; struct fd arg; -- 2.14.1