Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1925545imu; Thu, 17 Jan 2019 05:38:59 -0800 (PST) X-Google-Smtp-Source: ALg8bN7qo7AitXYCc9s5ezvIYtctVUN450+eV/w/8ZgIk9yK315P3hsfN4qc849KnLUHyA9APzCI X-Received: by 2002:a17:902:7d90:: with SMTP id a16mr14441713plm.249.1547732339828; Thu, 17 Jan 2019 05:38:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547732339; cv=none; d=google.com; s=arc-20160816; b=sdEJUUAkGEcKXF6oFHiuQRBgBhA1mxVNJNiYEvdPoc51fDQbTT36/6wr8nW47Qa49T cAEbIfEv+TOgzs0IgyTWq+pFtITaYv5dz3CLs7q+AUD54a1bEJl2R68ti3h82vf/bfH/ q5KVtZJqBYJHiIHf76Dn9puxvAN1BkzNrLxzv6u+aDI3k64GaBWjjCI/19U61vhOKBet P1E5vttoybocIE5Y24jOx5IVIvxCiTctYvOKVLTZ+UhWAQ6BJs/sjp85vrqsU0zLjDYL iiWX/dfC5YcUgFk6Kx8REgAosNe66m6GJIloTOz96Mm49E2doKcMljuCbIALgHqJjnvU bgwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:message-id:in-reply-to:mime-version :references:subject:cc:to:from:date; bh=U15kznwS/VNwrDfmGJTYGo86M1mQVteKSO1E+kMrRVQ=; b=FdIHpqI2yHjkU56JD9tJi22k/do95XrQXDniq1VsU8R18jhQhObiNEByZ/MeONx+DP XjNiczOFXs6FII0zOLfWjgwAuAW6mN9wztoPIBpaBLOcX29y7So9JLYqqotXq0RReA/p 9nmo75oA3r1i+n3RhmUMqa8guApvd81l23MrrSvWRCmCuNPvlgAWKy/cbqVLRzJrzpcQ f6V2FWm+j8owL7pXayakN69mUAIER3a/yer32l2DSGBYK7DHkJ7czCD5h7UgIsZ6Ytjt sNfatkd8yRJTjLh1b2EuP3u7P1J67qJoyJCzvmVv7hFPiZZt//e8ifCI20FWf6CAan8o MnoA== 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 15si1527086pgv.351.2019.01.17.05.38.44; Thu, 17 Jan 2019 05:38:59 -0800 (PST) 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 S1727081AbfAQN3P (ORCPT + 99 others); Thu, 17 Jan 2019 08:29:15 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:46526 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725868AbfAQN3P (ORCPT ); Thu, 17 Jan 2019 08:29:15 -0500 Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id x0HDT4iY137670 for ; Thu, 17 Jan 2019 08:29:13 -0500 Received: from e06smtp01.uk.ibm.com (e06smtp01.uk.ibm.com [195.75.94.97]) by mx0a-001b2d01.pphosted.com with ESMTP id 2q2t7qs8j2-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 17 Jan 2019 08:29:13 -0500 Received: from localhost by e06smtp01.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 17 Jan 2019 13:29:11 -0000 Received: from b06cxnps4074.portsmouth.uk.ibm.com (9.149.109.196) by e06smtp01.uk.ibm.com (192.168.101.131) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Thu, 17 Jan 2019 13:29:09 -0000 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x0HDT82P852320 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 17 Jan 2019 13:29:08 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 17DCDAE053; Thu, 17 Jan 2019 13:29:08 +0000 (GMT) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id CA903AE045; Thu, 17 Jan 2019 13:29:07 +0000 (GMT) Received: from osiris (unknown [9.152.212.95]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Thu, 17 Jan 2019 13:29:07 +0000 (GMT) Date: Thu, 17 Jan 2019 14:29:06 +0100 From: Heiko Carstens To: Arnd Bergmann Cc: linux-s390@vger.kernel.org, Martin Schwidefsky , linux-kernel@vger.kernel.org, y2038@lists.linaro.org, Dominik Brodowski , Mark Rutland , linux-api@vger.kernel.org Subject: Re: [PATCH 2/5] ipc: introduce ksys_ipc()/compat_ksys_ipc() for s390 References: <20190116131527.2071570-1-arnd@arndb.de> <20190116131527.2071570-3-arnd@arndb.de> MIME-Version: 1.0 In-Reply-To: <20190116131527.2071570-3-arnd@arndb.de> X-TM-AS-GCONF: 00 x-cbid: 19011713-4275-0000-0000-0000030077C9 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19011713-4276-0000-0000-0000380E9C86 Message-Id: <20190117132906.GB18351@osiris> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit Content-Disposition: inline X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-01-17_04:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=846 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1901170099 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 16, 2019 at 02:15:20PM +0100, Arnd Bergmann wrote: > The sys_ipc() and compat_ksys_ipc() functions are meant to only > be used from the system call table, not called by another function. > > Introduce ksys_*() interfaces for this purpose, as we have done > for many other system calls. > > Signed-off-by: Arnd Bergmann > --- > arch/s390/kernel/compat_linux.c | 2 +- > arch/s390/kernel/sys_s390.c | 2 +- > include/linux/syscalls.h | 4 ++++ > ipc/syscall.c | 20 ++++++++++++++++---- > 4 files changed, 22 insertions(+), 6 deletions(-) The patch below is needed as compile fix (allnoconfig). I will add this to your patch, no resend needed. diff --git a/arch/s390/kernel/sys_s390.c b/arch/s390/kernel/sys_s390.c index 6aa8fe00b39e..fd0cbbed4d9f 100644 --- a/arch/s390/kernel/sys_s390.c +++ b/arch/s390/kernel/sys_s390.c @@ -58,6 +58,7 @@ SYSCALL_DEFINE1(mmap2, struct s390_mmap_arg_struct __user *, arg) return error; } +#ifdef CONFIG_SYSVIPC /* * sys_ipc() is the de-multiplexer for the SysV IPC calls. */ @@ -76,6 +77,7 @@ SYSCALL_DEFINE5(s390_ipc, uint, call, int, first, unsigned long, second, */ return ksys_ipc(call, first, second, third, ptr, third); } +#endif /* CONFIG_SYSVIPC */ SYSCALL_DEFINE1(s390_personality, unsigned int, personality) { diff --git a/kernel/sys_ni.c b/kernel/sys_ni.c index ab9d0e3c6d50..ad016a7db0ea 100644 --- a/kernel/sys_ni.c +++ b/kernel/sys_ni.c @@ -366,7 +366,7 @@ COND_SYSCALL(kexec_file_load); /* s390 */ COND_SYSCALL(s390_pci_mmio_read); COND_SYSCALL(s390_pci_mmio_write); -COND_SYSCALL_COMPAT(s390_ipc); +COND_SYSCALL(s390_ipc); /* powerpc */ COND_SYSCALL(rtas);