asm-generic: Drop getrlimit and setrlimit syscalls from default list
hulk inclusion category: feature bugzilla: NA CVE: NA --------------------------- The newer prlimit64 syscall provides all the functionality provided by 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 <arnd@arndb.de> Cc: James Hogan <james.hogan@imgtec.com> Cc: linux-arch@vger.kernel.org Cc: linux-snps-arc@lists.infradead.org Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Will Deacon <will.deacon@arm.com> Cc: linux-arm-kernel@lists.infradead.org Cc: Mark Salter <msalter@redhat.com> Cc: Aurelien Jacquiot <a-jacquiot@ti.com> Cc: linux-c6x-dev@linux-c6x.org Cc: Richard Kuo <rkuo@codeaurora.org> Cc: linux-hexagon@vger.kernel.org Cc: linux-metag@vger.kernel.org Cc: Jonas Bonn <jonas@southpole.se> Cc: linux@lists.openrisc.net Cc: Chen Liqin <liqin.linux@gmail.com> Cc: Lennox Wu <lennox.wu@gmail.com> Cc: Chris Metcalf <cmetcalf@mellanox.com> Cc: Guan Xuetao <gxt@mprc.pku.edu.cn> Cc: Ley Foon Tan <lftan@altera.com> Cc: nios2-dev@lists.rocketboards.org Cc: Yoshinori Sato <ysato@users.sourceforge.jp> Cc: uclinux-h8-devel@lists.sourceforge.jp Signed-off-by:Yury Norov <ynorov@caviumnetworks.com> Acked-by:
Arnd Bergmann <arnd@arndb.de> Acked-by: Mark Salter <msalter@redhat.com> [c6x] Acked-by: James Hogan <james.hogan@imgtec.com> [metag] Acked-by: Ley Foon Tan <lftan@altera.com> [nios2] Acked-by: Stafford Horne <shorne@gmail.com> [openrisc] Acked-by: Will Deacon <will.deacon@arm.com> [arm64] Acked-by: Vineet Gupta <vgupta@synopsys.com> #arch/arc bits Signed-off-by:
Xiongfeng Wang <wangxiongfeng2@huawei.com> Reviewed-by:
Hanjun Guo <guohanjun@huawei.com <mailto:guohanjun@huawei.com>> Signed-off-by:
Yang Yingliang <yangyingliang@huawei.com>
Showing
- arch/arc/include/uapi/asm/unistd.h 1 addition, 0 deletionsarch/arc/include/uapi/asm/unistd.h
- arch/arm64/include/uapi/asm/unistd.h 1 addition, 0 deletionsarch/arm64/include/uapi/asm/unistd.h
- arch/c6x/include/uapi/asm/unistd.h 1 addition, 0 deletionsarch/c6x/include/uapi/asm/unistd.h
- arch/h8300/include/uapi/asm/unistd.h 1 addition, 0 deletionsarch/h8300/include/uapi/asm/unistd.h
- arch/hexagon/include/uapi/asm/unistd.h 1 addition, 0 deletionsarch/hexagon/include/uapi/asm/unistd.h
- arch/nds32/include/uapi/asm/unistd.h 1 addition, 0 deletionsarch/nds32/include/uapi/asm/unistd.h
- arch/nios2/include/uapi/asm/unistd.h 1 addition, 0 deletionsarch/nios2/include/uapi/asm/unistd.h
- arch/openrisc/include/uapi/asm/unistd.h 1 addition, 0 deletionsarch/openrisc/include/uapi/asm/unistd.h
- arch/riscv/include/asm/unistd.h 1 addition, 0 deletionsarch/riscv/include/asm/unistd.h
- arch/unicore32/include/uapi/asm/unistd.h 1 addition, 0 deletionsarch/unicore32/include/uapi/asm/unistd.h
- include/uapi/asm-generic/unistd.h 5 additions, 0 deletionsinclude/uapi/asm-generic/unistd.h
- scripts/checksyscalls.sh 5 additions, 0 deletionsscripts/checksyscalls.sh
Please register or sign in to comment