Received: by 10.192.165.148 with SMTP id m20csp2599848imm; Sun, 6 May 2018 19:43:20 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrFYiLJIYqvqlZmjCuZqACHsdT2ZXtoMLXTgUriE1JBvM1It+LbvUWgGh00pqn2TYOagm7x X-Received: by 2002:a65:6603:: with SMTP id w3-v6mr28956913pgv.151.1525661000411; Sun, 06 May 2018 19:43:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525661000; cv=none; d=google.com; s=arc-20160816; b=yu1TU8TtXmvQoWhWyOUtPNxWgWYZRGZr9zCeFL/0XD13L/LbMUeehUSDL/PEORqZ5I nZTXGwQcNLsSI//eqcggc6bdgcYHpSBph01aX7suesX2cPKN9CGITBoQcrAmf+MNS8qj CFhGHs1YXyhF5+2X56REeWwHwtQ1aXFUAV0g9+WF7yDQLpYv98rVH+IoQh3j1Gil1OIU AI8YGXZWOkTUk0XAhotKCsl+USgLV6oc/InF4tYMrVlxEH9E0yKGBoVbb5/cPx9jPKRg JMM+o0YMSybKmSROTggHnXgPtoj73iyasJplOO65sOdnTAARv2foA8coCNpYgs3NWg39 Vj6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:arc-authentication-results; bh=KRT7dYg1whY49699Znbbuib+N6QkaCddQyODccAOqMo=; b=vvjOMbw2bEO+AekQswzsp/CIsGBaCuV8l9RZQFqDx/FFLau88x6s+WzruvAIpFuCIS BJHYw/pLLim02XON4Vf/HcKoBKxzRRAdxXyGKCVmw3d2hYPZZ/J5rMw9s3dvm/fLOYvQ Oi7fFdcxfBO1+Yb5lfmX6GfvguszKebABIxPiBwa3Vg3Bl+yYracPVXtdh4rInrjHK3j 8xCSnHL80he6gYPPDOWQAx2bfVvWFEZpxyjc04tGLf3PrAXxjao6FNz/+/iidRfe62Xl fr4KA0aruRF1dvvfdDNcQ2e91LQehLVybGxjujxNjI+J5aLpj1kpQ8ynHIhaa+f5vOAb rXOA== 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 l23-v6si17175505pgo.280.2018.05.06.19.43.05; Sun, 06 May 2018 19:43:20 -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 S1751931AbeEGCmy (ORCPT + 99 others); Sun, 6 May 2018 22:42:54 -0400 Received: from ozlabs.org ([203.11.71.1]:53639 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751852AbeEGCmw (ORCPT ); Sun, 6 May 2018 22:42:52 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 40fRk33TZVz9s0q; Mon, 7 May 2018 12:42:51 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au From: Michael Ellerman To: "Naveen N. Rao" , linuxppc-dev@ozlabs.org Cc: linux-kernel@vger.kernel.org, viro@zeniv.linux.org.uk Subject: Re: [PATCH 1/6] powerpc/syscalls: Switch trivial cases to SYSCALL_DEFINE In-Reply-To: <1525446080.ih4a1c8i42.naveen@linux.ibm.com> References: <20180502132051.28861-1-mpe@ellerman.id.au> <1525446080.ih4a1c8i42.naveen@linux.ibm.com> Date: Mon, 07 May 2018 12:42:50 +1000 Message-ID: <87y3gw6v9x.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org "Naveen N. Rao" writes: > Michael Ellerman wrote: >> 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(-) >> > > I suppose we can also do this for switch_endian? Yeah. It'd nice to have an automated test that every syscall is available via FTRACE_SYSCALLS, I just haven't got around to writing one. cheers > diff --git a/arch/powerpc/kernel/syscalls.c b/arch/powerpc/kernel/syscalls.c > index 466216506eb2..290265f2700c 100644 > --- a/arch/powerpc/kernel/syscalls.c > +++ b/arch/powerpc/kernel/syscalls.c > @@ -123,7 +123,7 @@ long ppc_fadvise64_64(int fd, int advice, u32 offset_high, u32 offset_low, > (u64)len_high << 32 | len_low, advice); > } > > -long sys_switch_endian(void) > +SYSCALL_DEFINE0(switch_endian) > { > struct thread_info *ti; > > > - Naveen