From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Hogan Subject: Re: [PATCH 03/20] asm-generic: Drop getrlimit and setrlimit syscalls from default list Date: Mon, 5 Jun 2017 15:44:06 +0100 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" Return-path: Content-Disposition: inline In-Reply-To: <20170604120009.342-4-ynorov-M3mlKVOIwJVv6pq1l3V1OdBPR1lH4CV8@public.gmane.org> Sender: linux-metag-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: To: Yury Norov Cc: Catalin Marinas , linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-doc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, 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 , schwidefsky-tA70FqPdS9bQT0dZR+AlfA@public.gmane.org, broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, Joseph Myers --+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-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > Cc: linux-snps-arc-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org > Cc: Catalin Marinas > Cc: Will Deacon > Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org > Cc: Mark Salter > Cc: Aurelien Jacquiot > Cc: linux-c6x-dev-jPsnJVOj+W6hPH1hqNUYSQ@public.gmane.org > Cc: Richard Kuo > Cc: linux-hexagon-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > Cc: linux-metag-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > Cc: Jonas Bonn > Cc: linux-ZwoEplunGu2h2975yA52AaxOck334EZe@public.gmane.org > Cc: Chen Liqin > Cc: Lennox Wu > Cc: Chris Metcalf > Cc: Guan Xuetao > Cc: Ley Foon Tan > Cc: nios2-dev-g9ZBwUv/Ih/yUk5EbOjzuce+I+R0W71w@public.gmane.org > Cc: Yoshinori Sato > Cc: uclinux-h8-devel-5NWGOfrQmneRv+LV9MX5uooqe+aC9MnS@public.gmane.org > 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--