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. > > 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. > > Cc: Arnd Bergmann <a...@arndb.de> > Cc: James Hogan <james.ho...@imgtec.com> > Cc: linux-a...@vger.kernel.org > Cc: linux-snps-arc@lists.infradead.org > Cc: Catalin Marinas <catalin.mari...@arm.com> > Cc: Will Deacon <will.dea...@arm.com> > Cc: linux-arm-ker...@lists.infradead.org > Cc: Mark Salter <msal...@redhat.com> > Cc: Aurelien Jacquiot <a-jacqu...@ti.com> > Cc: linux-c6x-...@linux-c6x.org > Cc: Richard Kuo <r...@codeaurora.org> > Cc: linux-hexa...@vger.kernel.org > Cc: linux-me...@vger.kernel.org > Cc: Jonas Bonn <jo...@southpole.se> > Cc: li...@lists.openrisc.net > Cc: Chen Liqin <liqin.li...@gmail.com> > Cc: Lennox Wu <lennox...@gmail.com> > Cc: Chris Metcalf <cmetc...@mellanox.com> > Cc: Guan Xuetao <g...@mprc.pku.edu.cn> > Cc: Ley Foon Tan <lf...@altera.com> > Cc: nios2-...@lists.rocketboards.org > Cc: Yoshinori Sato <ys...@users.sourceforge.jp> > Cc: uclinux-h8-de...@lists.sourceforge.jp > Signed-off-by: Yury Norov <yno...@caviumnetworks.com> > Acked-by: Arnd Bergmann <a...@arndb.de> > Acked-by: Mark Salter <msal...@redhat.com> [c6x] > Acked-by: James Hogan <james.ho...@imgtec.com> [metag] > Acked-by: Ley Foon Tan <lf...@altera.com> [nios2] > Acked-by: Stafford Horne <sho...@gmail.com> [openrisc] > Acked-by: Will Deacon <will.dea...@arm.com> [arm64] > Acked-by: Vineet Gupta <vgu...@synopsys.com> #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
signature.asc
Description: Digital signature
_______________________________________________ linux-snps-arc mailing list linux-snps-arc@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-snps-arc