Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4637359pxv; Tue, 27 Jul 2021 12:19:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzkGrQddhWjcbwURN2YNdKnBZF/x+oR/JGK2i3i8QwEWtfeCqId5iSdBp0C10aRfWDbxUIi X-Received: by 2002:a05:6402:b83:: with SMTP id cf3mr14312147edb.12.1627413541335; Tue, 27 Jul 2021 12:19:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627413541; cv=none; d=google.com; s=arc-20160816; b=xbp5AJjiYJALRkbz7T8AYfUwnc+FQ4XbAd0Al7Fztp1Dt6Tt2tc2l+npN6EZee3bjN NVkzw3GGqIgu/lpkdJGlTaLX5i1fz/0cw0CpS06ynvg8jSjFSTClzTMS1DHjqffBW7m6 S1MND0ugJDOTPvo0Ew20aZ37Jk8qWbJ4OZDvdo8ANl2MwpcwL2d2Co1hdENhO/UJmKin 2Rh62JEB7iiUV/hHWjIx7y9TnxHuGNmH2J1kkSIOkBftIaiu9oCdTSKDByQEvADj1NAd AJQiBvvK2NnsUXzCZ1flraB8MH3XXq/P95ofXQi8zves8ao22pHFAdfpVt13hkA+ofRu J1zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=S9WrCfkjSuekFZGHC4uhqiuih4pXzbHlc84xouUPS30=; b=ecND7WBwRmnAmb/z2w5njznsheR7dPiDyrfec91dCfmDezvYvkBRhj2OAFExO90EKC Orbuxx/fNfyX5SYclwQKly9tmTSY1us4v5Vk0MA2zxm1RfLnnwpBOGD+0JW6hh3cYKIB RyZE+5zVbroQeNy1PFid7VOHdLVhZAdgwESLZSnXBRJXb+/M//HpZHd7r7vxAGhkgk7u BEHx0ppLQBmw2kg+da4K/pAPTxUnktBf5JnndmpvymnNH1Hd1aoGeHdDsWMqKsv4O069 G93Oe6FITmINZ5IGfy43yXfx4edLK4PZ/Eu3odIWo40XIV/rgoVmJVeQ7iBtJCdymJnB 1ekA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=XtVP3aKZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h17si3561995eds.168.2021.07.27.12.18.36; Tue, 27 Jul 2021 12:19:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=XtVP3aKZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231707AbhG0TRP (ORCPT + 99 others); Tue, 27 Jul 2021 15:17:15 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:16170 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229945AbhG0TRO (ORCPT ); Tue, 27 Jul 2021 15:17:14 -0400 Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 16RJCSEB017230; Tue, 27 Jul 2021 15:16:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=pp1; bh=S9WrCfkjSuekFZGHC4uhqiuih4pXzbHlc84xouUPS30=; b=XtVP3aKZR9Z1pNXNGsp2zrrSA1oIVqlmYRUJPfycxAbVOkY5aZf+STUn9HLRwdindj3l KayU7gSPFJF6TUFinKMIcypSlccNbLBBnSnc5ruZiyqnwmDoIislOsDVW4Te5vaOGJgZ b7kywMaOLrCGDMZRY+uKUt0OzvUQ34KEsan0jAdmN9/yBt+/+HMJBKo75rsn7qBS8mun gUQarU41NbCVnlybtddgQtb3CoZX8pZTDN0LmYM7pXhSRrMOgI/YBhMS1NwBf8j2iz9x emQXUe5DEH1yYeh2sRn1AWomHCowoydRrg2Gdsd2bZqQNw5BzKMv2r6i+GFg1iZ0otVG Dg== Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com with ESMTP id 3a2qtvg9j2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 27 Jul 2021 15:16:01 -0400 Received: from m0098419.ppops.net (m0098419.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 16RJFBjg028792; Tue, 27 Jul 2021 15:16:00 -0400 Received: from ppma04fra.de.ibm.com (6a.4a.5195.ip4.static.sl-reverse.com [149.81.74.106]) by mx0b-001b2d01.pphosted.com with ESMTP id 3a2qtvg9h1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 27 Jul 2021 15:16:00 -0400 Received: from pps.filterd (ppma04fra.de.ibm.com [127.0.0.1]) by ppma04fra.de.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 16RIumuQ029158; Tue, 27 Jul 2021 19:15:58 GMT Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by ppma04fra.de.ibm.com with ESMTP id 3a235kgdeu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 27 Jul 2021 19:15:58 +0000 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 16RJFthW28377476 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 27 Jul 2021 19:15:55 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id EF014A405F; Tue, 27 Jul 2021 19:15:54 +0000 (GMT) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BD9DBA4057; Tue, 27 Jul 2021 19:15:53 +0000 (GMT) Received: from osiris (unknown [9.145.19.157]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Tue, 27 Jul 2021 19:15:53 +0000 (GMT) Date: Tue, 27 Jul 2021 21:15:52 +0200 From: Heiko Carstens To: Arnd Bergmann Cc: Andrew Morton , Arnd Bergmann , Catalin Marinas , Will Deacon , Thomas Bogendoerfer , "James E.J. Bottomley" , Helge Deller , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , Vasily Gorbik , Christian Borntraeger , "David S. Miller" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , the arch/x86 maintainers , "H. Peter Anvin" , Al Viro , "Eric W. Biederman" , Christoph Hellwig , Feng Tang , Linux ARM , Linux Kernel Mailing List , "open list:BROADCOM NVRAM DRIVER" , Parisc List , linuxppc-dev , linux-s390 , sparclinux , linux-arch , Linux API , Linux-MM , Christoph Hellwig Subject: Re: [PATCH v5 4/6] mm: simplify compat numa syscalls Message-ID: References: <20210727144859.4150043-1-arnd@kernel.org> <20210727144859.4150043-5-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-TM-AS-GCONF: 00 X-Proofpoint-GUID: -XM2aaOHmahf3GNtvPV0YNUK2TjKX7f3 X-Proofpoint-ORIG-GUID: TkiykJPEd5k1niuESQpMFCol9mhqnTsf X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391,18.0.790 definitions=2021-07-27_13:2021-07-27,2021-07-27 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 phishscore=0 adultscore=0 clxscore=1015 malwarescore=0 priorityscore=1501 impostorscore=0 lowpriorityscore=0 mlxscore=0 mlxlogscore=984 bulkscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2107140000 definitions=main-2107270113 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 27, 2021 at 08:49:40PM +0200, Arnd Bergmann wrote: > On Tue, Jul 27, 2021 at 8:38 PM Heiko Carstens wrote: > > > > -268 common mbind sys_mbind compat_sys_mbind > > -269 common get_mempolicy sys_get_mempolicy compat_sys_get_mempolicy > > -270 common set_mempolicy sys_set_mempolicy compat_sys_set_mempolicy > > +268 common mbind sys_mbind sys_mbind > > +269 common get_mempolicy sys_get_mempolicy sys_get_mempolicy > > +270 common set_mempolicy sys_set_mempolicy sys_set_mempolicy > > > > would remove compat_ptr() conversion from nmask above if I'm not mistaken. > > Maybe I'm misremembering how compat syscalls work on s390. Doesn't > SYSCALL_DEFINEx(sys_mbind) still create two entry points __s390x_sys_mbind() > and __s390_sys_mbind() with different argument conversion (__SC_CAST vs > __SC_COMPAT_CAST)? I thought that was the whole point of the macros. You are remembering correctly, probably because you implemented it ;) I totally forgot - sorry for the noise!