Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752187AbcJ2VEa (ORCPT ); Sat, 29 Oct 2016 17:04:30 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:55826 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751031AbcJ2VE1 (ORCPT ); Sat, 29 Oct 2016 17:04:27 -0400 From: Arnd Bergmann To: Yury Norov Cc: James Hogan , linux-arch@vger.kernel.org, Vineet Gupta , Catalin Marinas , Will Deacon , Mark Salter , Aurelien Jacquiot , Yoshinori Sato , Richard Kuo , Ley Foon Tan , Jonas Bonn , Chen Liqin , Lennox Wu , Chris Metcalf , Guan Xuetao , Andrew Pinski , linux-snps-arc@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-c6x-dev@linux-c6x.org, uclinux-h8-devel@lists.sourceforge.jp, linux-hexagon@vger.kernel.org, linux-metag@vger.kernel.org, nios2-dev@lists.rocketboards.org Subject: Re: [PATCH] asm-generic: Drop getrlimit and setrlimit syscalls from default list Date: Sat, 29 Oct 2016 23:02:40 +0200 Message-ID: <2502005.4risrb1P1I@wuerfel> User-Agent: KMail/5.1.3 (Linux/4.4.0-34-generic; KDE/5.18.0; x86_64; ; ) In-Reply-To: <1477138444-14993-1-git-send-email-ynorov@caviumnetworks.com> References: <1477138444-14993-1-git-send-email-ynorov@caviumnetworks.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:+InMEwPMwBAwj1iNqBt1wGKFgH70uuoauVFM1QKuVrYBefGqp6h rAKS11UG+7WdFA1RHo3ztyrVNgaZn0hhSlCXMOuvVisXjkk64tJx+q6FgwQs4nvTZAG/xrM KJM9Bkykb1VAiYPZRP4GOwa1IoFAZDRDEvAcNyzkc291djtxYgK4KdfFYhRRYgtqIUhtnj2 2H4cBQaUuM33L+JJ1HmYA== X-UI-Out-Filterresults: notjunk:1;V01:K0:QV5bIpTNTNg=:1nCauLJKE61JTM6bQa6Vux 97GLgjd9MeqzRgIZGmvCSojH669Ks12183mUpncyaedubcgkgamYVEFkHgU2DG3jvx1wi2yn6 5Joa3/upL1BE2wObUSB4Dbq/So2R004Pf0ZwFeFDMfpRxQKxbonNusaQmL4W3r8cmKf3M41TO 8ednWlWbKe5d/2tivYD/BS3YZU7timBVSQCFsgRDaHHaIs8yUlh3OEziUJ4/CVVDRGgki6UKM ZpdLavzc2Rskw0BgS7YiSktAtx8Cjxelu9rZRNnKcumhDXYCSVESAeXMIBrcY8OXUitUWmDzI AcOOpSvJICYZHewUmbUs3Bc1xtmmlzAKenfI4NI37f/U14tBrcYZGpMFCV/xVlWoaYjy9QGbN Fl7fEVD8w/QXdL4XG2GxF2KBDGMgRUa7sM+x46Swt0s/j8hVfehwc4E4RXFBQCdNaDO/4sffH z1B7Q9eOami9JtEiXNYaQRDLHlg9D16Co9s/rlBgjN/5Seecklt/Nzfhjly0yqoWdIzCEuQz8 QqNqJWH1kZWEFLdkzgTU30E7A6ddLzPv9qF9Ouv0Y319eEW7OVSbik3P/LAkgRYpRgboC+PB+ DAqsMdJoMaCGTJ46LSmDujg6g3/60s7Lu4U1HdiqGudifJiefRGZm3QQmIIH6wNDu292tfsKM YsqEQv+zxrxfBB0Ono1VNZ1Tj8dW1lh73UxCWuhbt5xs9SgKzdVcumTuHFOSxYsWnZER4FP77 clBQYxYhMlPH7zjA Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 783 Lines: 16 On Saturday, October 22, 2016 3:14:04 PM CEST Yury Norov wrote: > The newer prlimit64 syscall provides all the functionality provided by > the getrlimit and setrlimit syscalls and adds the pid of target process, > so future architectures won't need to include getrlimit and setrlimit. > > Therefore drop getrlimit and setrlimit syscalls from the generic syscall > list unless __ARCH_WANT_SET_GET_RLIMIT is defined by the architecture's > unistd.h prior to including asm-generic/unistd.h, and adjust all > architectures using the generic syscall list to define it so that no > in-tree architectures are affected. The patch looks good, but shouldn't we also hide the actual syscall implementation if the symbol is not set? It's just dead code otherwise for new architectures. Arnd