Received: by 10.192.165.148 with SMTP id m20csp147946imm; Fri, 4 May 2018 08:04:32 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoDekb1pYysv5/cd5108TzEYOnOQyZoEuIj9kAtQ3GznmT2GCNB6BtXtBvdxyErKWWLddLR X-Received: by 2002:a17:902:264:: with SMTP id 91-v6mr28051081plc.341.1525446272272; Fri, 04 May 2018 08:04:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525446272; cv=none; d=google.com; s=arc-20160816; b=dvD+yeHLERq9Ug816KHn7Hz/DPvq1SEdORcMAlCYkX1tF1nQP+mmLyfoXlw2j5w+cW KS8YdukX/xAKYxcRoWjEoOC+NKRA1jpRXvzOfNJjUrldV3qK0R0Butk5LN0eeNWDthGn /06haGak7d4nJiTlRFTU/T5hMhU+ZaIaqykXVMRoRd6asTefGJRjV5yorFt5xYS6CyZO z+kcsyTz/gXTrn1G1NuRvapGduBOBA1DUIfKnnjaEas8mGxS9/qt8vZOgwZdUJJp2BXv QUhDDqdpWT0ERzH5xqLtsk+f0nMysepYDIUikEiz+2soppq+8XRZcG4udqe/SLaMiTVK +ijw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :mime-version:user-agent:in-reply-to:references:cc:to:subject:from :date:arc-authentication-results; bh=zmpwc9ED1JwtCmsL2LAIic+QJ4Eo/BTF8EzS+JZWUj4=; b=i1+a5I3yzrFfdYBnzVAnuzxF1KcRBgap9Od+H7SWp7pOofkqms4+JrGYTcicARMEn9 l/FI0reW+6lGkgvtjXwBpZsu6lP30CSQQQCfdZ2YZAgGyEsrS71GSZZPnopwfKTi6nXw Bvnwu6UMgrT4rnu5i57u2XK/7F4CvAZrC0D9gKGhjgZTNQCAyY2bL86RmncV6842fNYW ZC9iSEwkaP0kIA9S7TLRUwQLXN56ZI1+P3yM8VjdXkXN/EAOAw7rWgGRuIwEa4vC9GZq PDDQ1dGx8dBUzgqYSd0pD+2bspzQz68i74T2g7qVTC0H0BktAH1z/OhyA9YdGrhxu6SK CCCw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v123si16347926pfc.273.2018.05.04.08.04.17; Fri, 04 May 2018 08:04:32 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751399AbeEDPD6 convert rfc822-to-8bit (ORCPT + 99 others); Fri, 4 May 2018 11:03:58 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:40962 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751196AbeEDPD5 (ORCPT ); Fri, 4 May 2018 11:03:57 -0400 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w44F0Q4J146599 for ; Fri, 4 May 2018 11:03:56 -0400 Received: from e06smtp12.uk.ibm.com (e06smtp12.uk.ibm.com [195.75.94.108]) by mx0a-001b2d01.pphosted.com with ESMTP id 2hrqwxdvcb-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 04 May 2018 11:03:55 -0400 Received: from localhost by e06smtp12.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 4 May 2018 16:03:53 +0100 Received: from b06cxnps3075.portsmouth.uk.ibm.com (9.149.109.195) by e06smtp12.uk.ibm.com (192.168.101.142) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Fri, 4 May 2018 16:03:50 +0100 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w44F3o9F9240866; Fri, 4 May 2018 15:03:50 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 7C9C85204B; Fri, 4 May 2018 14:54:15 +0100 (BST) Received: from localhost (unknown [9.84.221.254]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTP id 167DB52049; Fri, 4 May 2018 14:54:15 +0100 (BST) Date: Fri, 04 May 2018 20:33:48 +0530 From: "Naveen N. Rao" Subject: Re: [PATCH 1/6] powerpc/syscalls: Switch trivial cases to SYSCALL_DEFINE To: linuxppc-dev@ozlabs.org, Michael Ellerman Cc: linux-kernel@vger.kernel.org, viro@zeniv.linux.org.uk References: <20180502132051.28861-1-mpe@ellerman.id.au> In-Reply-To: <20180502132051.28861-1-mpe@ellerman.id.au> User-Agent: astroid/0.11.1 (https://github.com/astroidmail/astroid) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8BIT X-TM-AS-GCONF: 00 x-cbid: 18050415-0008-0000-0000-000004F308D2 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18050415-0009-0000-0000-00001E87368A Message-Id: <1525446080.ih4a1c8i42.naveen@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-05-04_05:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1805040139 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? 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