Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751194AbdFEOoL (ORCPT ); Mon, 5 Jun 2017 10:44:11 -0400 Received: from mailapp01.imgtec.com ([195.59.15.196]:23394 "EHLO imgpgp01.kl.imgtec.org" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751335AbdFEOoJ (ORCPT ); Mon, 5 Jun 2017 10:44:09 -0400 X-PGP-Universal: processed; by imgpgp01.kl.imgtec.org on Mon, 05 Jun 2017 16:53:07 +0100 Date: Mon, 5 Jun 2017 15:44:06 +0100 From: James Hogan To: Yury Norov CC: Catalin Marinas , , , , Arnd Bergmann , Andrew Pinski , Andrew Pinski , Adam Borowski , Chris Metcalf , Steve Ellcey , Maxim Kuvyrkov , Ramana Radhakrishnan , Florian Weimer , Bamvor Zhangjian , Andreas Schwab , Chris Metcalf , Heiko Carstens , , , Joseph Myers , , , , , , , , , , , , , , , Will Deacon , Mark Salter , Aurelien Jacquiot , , Richard Kuo , , , Jonas Bonn , , Chen Liqin , Lennox Wu , Guan Xuetao , Ley Foon Tan , , Yoshinori Sato , Subject: Re: [PATCH 03/20] asm-generic: Drop getrlimit and setrlimit syscalls from default list Message-ID: <20170605144406.GT6973@jhogan-linux.le.imgtec.org> References: <20170604120009.342-1-ynorov@caviumnetworks.com> <20170604120009.342-4-ynorov@caviumnetworks.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="+OVWeTxrbAwQuiek" Content-Disposition: inline In-Reply-To: <20170604120009.342-4-ynorov@caviumnetworks.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-Originating-IP: [192.168.154.110] X-ESG-ENCRYPT-TAG: 1b7d744b Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3847 Lines: 93 --+OVWeTxrbAwQuiek Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Yury, On Sun, Jun 04, 2017 at 02:59:52PM +0300, 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. >=20 > 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 architec= tures > using the generic syscall list to define it so that no in-tree architectu= res > are affected. >=20 > Cc: Arnd Bergmann > Cc: James Hogan > Cc: linux-arch@vger.kernel.org > Cc: linux-snps-arc@lists.infradead.org > Cc: Catalin Marinas > Cc: Will Deacon > Cc: linux-arm-kernel@lists.infradead.org > Cc: Mark Salter > Cc: Aurelien Jacquiot > Cc: linux-c6x-dev@linux-c6x.org > Cc: Richard Kuo > Cc: linux-hexagon@vger.kernel.org > Cc: linux-metag@vger.kernel.org > Cc: Jonas Bonn > Cc: linux@lists.openrisc.net > Cc: Chen Liqin > Cc: Lennox Wu > Cc: Chris Metcalf > Cc: Guan Xuetao > Cc: Ley Foon Tan > Cc: nios2-dev@lists.rocketboards.org > Cc: Yoshinori Sato > Cc: uclinux-h8-devel@lists.sourceforge.jp > Signed-off-by: Yury Norov > Acked-by: Arnd Bergmann > Acked-by: Mark Salter [c6x] > Acked-by: James Hogan [metag] > Acked-by: Ley Foon Tan [nios2] > Acked-by: Stafford Horne [openrisc] > Acked-by: Will Deacon [arm64] > Acked-by: Vineet Gupta #arch/arc bits > --- > arch/arc/include/uapi/asm/unistd.h | 1 + > arch/arm64/include/uapi/asm/unistd.h | 1 + > arch/c6x/include/uapi/asm/unistd.h | 1 + > arch/h8300/include/uapi/asm/unistd.h | 1 + > arch/hexagon/include/uapi/asm/unistd.h | 1 + > arch/metag/include/uapi/asm/unistd.h | 1 + > arch/nios2/include/uapi/asm/unistd.h | 1 + > arch/openrisc/include/uapi/asm/unistd.h | 1 + > arch/score/include/uapi/asm/unistd.h | 1 + > arch/tile/include/uapi/asm/unistd.h | 1 + > arch/unicore32/include/uapi/asm/unistd.h | 1 + > include/uapi/asm-generic/unistd.h | 5 +++++ Don't forget to add __IGNORE_getrlimit and __IGNORE_setrlimit to scripts/checksyscalls.sh, or you'll get warnings about missing syscalls. Cheers James --+OVWeTxrbAwQuiek Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEd80NauSabkiESfLYbAtpk944dnoFAlk1biwACgkQbAtpk944 dnrVcg//UZcmXgi0ckej9MixRPVufo5+Oak4JvcCYjNjvUrPmaTQkfKO5rxbai/q j6cdZOEE7ypJeSN6BXth9NvTzS8v212O7xcUv6+5c0VLx3lRwH89EJbrw3j6OuzY 2D/APaWBDrSBoZMEVuRyewQiEY6gz8wtyrFO94hfI0qNFtOFT1lzvSGeRVrsAlEE gj8Mw+pswMla6aFm2oI6adqT0P+0ZwvfkKBHDu/euMrkLZnmBeO6ACiLBvB/IKam IJGNSDWjNE+OsULzqV0QOtElWPRqUWRJ/l5tf1JqQE+pKjHE418QwzJluXKR7tMC MexPIKQFol7yn57bnTeGv3dymlbkaQ4TDjsIKdPfcmEwz07kZhq2VcpS4ubjvtp/ c5n4CWV4lGY++aF17nbDpX64qfPYuHhpGI+FfrOHN78jCxutmf+H9LQ2T/Ep3MZ1 9K1uMrwqE0rSt1cg/HLS9jPg+pyFU1iTJ+CdulSVljwLIrjGh95tw2d3MHuuXGL7 03VA9rTgYTv6MM17dGtH63HeP3VcDxmMwT5wgntRl/7ZRPU4T2a4eGlaw19A/Nim RjIVDkX3XFSOESLR14ILR4QUwa0Q07SJFxlmCsb/OHU+CGJBqMrX/q6YImXR3/JG qhW2Iq8UCTsMYvQc0WL7dcTTMIHI9pLAmpexWx0mxhoqSWeAC0c= =DDq9 -----END PGP SIGNATURE----- --+OVWeTxrbAwQuiek--