Received: by 10.192.165.148 with SMTP id m20csp2190125imm; Thu, 3 May 2018 11:56:28 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqIOihV0uiJ+7ImOJnFX3GaRYg0/9HeuzPi8qMTnlA0IUxfwjWi+VSnL1y0AA0hG0aMNaKa X-Received: by 2002:a65:51c4:: with SMTP id i4-v6mr14727603pgq.190.1525373788242; Thu, 03 May 2018 11:56:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525373788; cv=none; d=google.com; s=arc-20160816; b=z31PiKwiqpXGDMbLzvWVfHsS1gdmcK9TnKLbohUUvl9lZDGvET3YHVJTndGcUA7JR0 s1un11DSS2826cW8eFrPxyk1WYuFJZLblo1fd3yy8FXr+byt6+Gnfz0jF48xCgtsn5K6 p3HZU7+9qbAfNkLLP7LsxUQ2T/JZeZLEGXiNwZ2zkW6keNHrug/Fus7CKJAn7CpwUBzP nQmhV7gMRskgc6dNeZoykXNruzVQ7Jqn/lb12578eGXfIxHNYvE8Sq3fw7NX0JRRIO9K CN2pEIS3uuIBjuBbsQr1ZcqQDEm8C7h9Iz4UOGacDMhG229pdHOIaExpF2CAy7hNfTvC 4mVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=E4wX5t3mPx7TO367S+WXhRiyX/2gMtR5EJsAw4z0zv8=; b=U2HcgG8HI7e6TDL35o6ZCJ/EuzJQD/fIojfwX72Ao3OpbM4s6i313mANI6BreB5OiK 3/LBRQwTq1NBWn+oJ9EU0L72lr2r6HSGzSjBRH9TpKa7vAlUSoHK/uuZHgsYPnqc9Mbw XaXOtkfMAtNyyUFyRXVcmTaCr+YKXjhx1EofED9aCItLZkoxbfsTrUtEKj7Xm6mVw7lp KNWWwa2ikatDD7swIDC71DX2W4KQGg2rOmbSDGeUYMb2ZAqZORtFcSYtssafpC4qPyM3 keEyMC0FAperoQ4E8fOE2SpO3sNETblRUSkiddeRj26eF99AlpLqtFcY4HUSYlwxtJep MjtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=TLiZx/jc; 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 c9-v6si13043156plz.501.2018.05.03.11.55.43; Thu, 03 May 2018 11:56:28 -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=fail header.i=@gmail.com header.s=20161025 header.b=TLiZx/jc; 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 S1751382AbeECSvd (ORCPT + 99 others); Thu, 3 May 2018 14:51:33 -0400 Received: from mail-ot0-f193.google.com ([74.125.82.193]:36650 "EHLO mail-ot0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751141AbeECSvc (ORCPT ); Thu, 3 May 2018 14:51:32 -0400 Received: by mail-ot0-f193.google.com with SMTP id m11-v6so15654238otf.3 for ; Thu, 03 May 2018 11:51:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=E4wX5t3mPx7TO367S+WXhRiyX/2gMtR5EJsAw4z0zv8=; b=TLiZx/jcUBQN7E2Kdxpg1KnT1g+slamHR4f0I+TasDTeiFh6FG0QdQWXuUpoXFS2P/ CNeUC5FCzE7Y0s7iaTeTgyJFviRBxQ2npHhWIxclWVKkWZWk2OqYeNQRwyAVjRgOXG5y axCxjPOzJCFHM/GoS1gZzCmmTPzWhcRkN+t2QVUikf1uRFG/yipWQfF7sbg1sUy7kDS6 ftQdn8BvOQ85GiMVo0qMvGWFZ+CJUUIzykcu88zUn7GsGyDUv/ZZQE9B+y6PQ4lcr6E7 NaahxkY6+VJesMSUwgDwSMRKjaOcoTZUqTwrR2/ZLcNDLp6uE709estTfOCdZ0+krjeS RDLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=E4wX5t3mPx7TO367S+WXhRiyX/2gMtR5EJsAw4z0zv8=; b=TaMthJp8IHczhVaglgv0Id9hQ2saP+Ro2Z82X5Z1ZMX8+C0az0+JsU393MU1p/YZRv 6ZyfRNX/xmUb/fLciyUf/ilCpiVmKmI4JssnBqmmpu7UMXABShD+4NCF/sIkrPB7RSQ3 4XQVq10KmdZf2JkdWIM+ly7NLCSnTmcB3vgo6rsXl2RxkdNgkA7diMrJKx7wLiamez4s 8mpRpYENRAiKm3pL8ExMsG1Fb77JUcup84DwtypmzCcJ7kZEUT1P6V6hM/kai2AtNgrj qgJ+clFe3UuB2UFlsrfiazfl3go1paOhG+6jKVdbb0LaG1cjH3LNrC7Z9Q0qW1BUELOI ns7A== X-Gm-Message-State: ALQs6tAwCBJzxow0PG65ptALreRu2SYhWifGi7xrJi28BL4z50nowS85 fNqKgeV8R6nY14mSW9rq4/qU53l62iCvjri92TaJqFgD X-Received: by 2002:a9d:290a:: with SMTP id d10-v6mr16369402otb.334.1525373491325; Thu, 03 May 2018 11:51:31 -0700 (PDT) MIME-Version: 1.0 Received: by 10.138.3.5 with HTTP; Thu, 3 May 2018 11:51:10 -0700 (PDT) In-Reply-To: <20180502132051.28861-1-mpe@ellerman.id.au> References: <20180502132051.28861-1-mpe@ellerman.id.au> From: Mathieu Malaterre Date: Thu, 3 May 2018 20:51:10 +0200 X-Google-Sender-Auth: V_sXQXLKaWqCmTW_tvy4reAm4Ww Message-ID: Subject: Re: [PATCH 1/6] powerpc/syscalls: Switch trivial cases to SYSCALL_DEFINE To: Michael Ellerman Cc: linuxppc-dev@ozlabs.org, Al Viro , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 2, 2018 at 3:20 PM, Michael Ellerman wrote: > From: Al Viro Maybe add: Link: https://github.com/linuxppc/linux/issues/131 For the series: compile, build without error (W=1), and works on my system. > 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 >