Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754267AbbL3WhV (ORCPT ); Wed, 30 Dec 2015 17:37:21 -0500 Received: from mout.kundenserver.de ([212.227.17.24]:49174 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750904AbbL3WhU (ORCPT ); Wed, 30 Dec 2015 17:37:20 -0500 From: Arnd Bergmann To: linux-arm-kernel@lists.infradead.org Cc: Yury Norov , pinskia@gmail.com, Prasun.Kapoor@caviumnetworks.com, Catalin Marinas , Nathan_Lynch@mentor.com, linux-kernel@vger.kernel.org, agraf@suse.de, klimov.linux@gmail.com, broonie@kernel.org, jan.dakinevich@gmail.com, ddaney.cavm@gmail.com, schwab@suse.de, bamvor.zhangjian@huawei.com, philipp.tomsich@theobroma-systems.com, joseph@codesourcery.com, christoph.muellner@theobroma-systems.com Subject: Re: [PATCH v6 13/20] arm64: ilp32: share aarch32 syscall wrappers to ilp32 Date: Wed, 30 Dec 2015 23:36:27 +0100 Message-ID: <1875383.FRuM9m49WW@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <20151230172905.GA8296@yury-N73SV> References: <1450215766-14765-1-git-send-email-ynorov@caviumnetworks.com> <201512232141.54384.arnd@arndb.de> <20151230172905.GA8296@yury-N73SV> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:MrVNVDvVbzl0V1Qk4wJ4WzZknqi79UgBT6d0CgjJLWRGUF1vMTs AfS6QhB94TUBT5wLdrjsriQkAuQSSlRAPXQJq8cDgxDgHOAF26Cmxk+bw9L+PrrTnPTsnYr gvls+kOUUBvbC1RR2/rR5m30/1h0b4lULfyyozkE1PsW3XGaMSp+qE/rViHyOd5PBZhSxrL VKFvKwN4PeOt7VsuEuhug== X-UI-Out-Filterresults: notjunk:1;V01:K0:i43loP6gIJU=:yBvsPzI038d2ssLR4IbyNz wiKja82VXgJu5bHVOwZEicqf4hwv/r16s/FwRbWIez5wN5lvuVZx9O75Tv873mCLadUC+jjCZ cYZEEavTpJBvJQ5VdIHrUuqQfpZ4TMMSBcGXeWZhQaGE89nGUQE3BfK7Ew0mof49m99gOj9lM 7t/qwUa5H/b91MXpGfWOTBW644nw520sQLR2ofGUAzcEPyK1mvOUim/zZ4D3SI5kcFAtC3+Mt xqlpWtXA8X/EX2jcYbwu1kaaPQhRfDr2jtPmPsdw2E/7OtZe1PCFK2Uex3toOK2FcwXBDi52d dsMURso05WPdOq6xs7G+XkjEAnWqltc3RdQJIke8/rDPWDBG2OyssK/F5H6FlDI86YQnOMaPC yW4i0E7G2M9Mn7tAlB0x8iNUTRXvFDq5CNis4Z+FvPvgSIibNFR5bLJT5usJBpfJzWca+z62v Df5peCpnANWERwkvGzDwdoeExXeXYuCf2POhwNED2eLQ+J2kpp0Cm+MKS84EZWCWbvff0rWIl tIFJMkV+rT/tkdfc0ATuJIk8Zwb+C7OIoe8uOUCgBMfvk6jZdF3w2kFDN4JiuNEfXc145iQJE BTcoiezOpxqK9bgUEhnP+baNS01DgM6fchnrK+2njWfv75126LlfIjI8SzT7ZRvmCY0R76FCE 0lUycJuofEDhrufdTWeOpL37NvlAUaQc9tWFLlriH173FiI3/HBGjBNSRmDIAt+RwCHPDokqL U5ER5HgnlaIYt+QL Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 979 Lines: 23 On Wednesday 30 December 2015 20:29:05 Yury Norov wrote: > > So. For ilp32, the only wrapper left here, is compat_sys_mmap2_wrapper. > But this is workaroud, as comment tells: > Note: off_4k (w5) is always in units of 4K. If we can't do the > requested offset because it is not page-aligned, we return -EINVAL. > > Not sure we should pull it to ILP32. If so, we can call sys_mmap_pgoff() > directly. And we don't need this patch at all therefore. Any throughts? > > I think providing the 64-bit version of sys_mmap() would be the simplest API, as that avoids any possible confusion about the shift amount (hardcoded 12 bits vs PAGE_BITS). It fits in with the other syscalls that pass an loff_t value here. Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/