asm-generic: Drop getrlimit and setrlimit syscalls from default list
authorYury Norov <ynorov@caviumnetworks.com>
Wed, 16 May 2018 08:18:50 +0000 (11:18 +0300)
committerArnd Bergmann <arnd@arndb.de>
Tue, 19 Feb 2019 09:10:06 +0000 (10:10 +0100)
commit80d7da1cac62f28b3df4880e8143b39cabb4b59a
tree1f928fca7845290180844053081e214b3f9ddf33
parent942fa985e9f161ac018ce2230d3e6f7668cca6ac
asm-generic: Drop getrlimit and setrlimit syscalls from default list

The newer prlimit64 syscall provides all the functionality of 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: linux-arch@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-hexagon@vger.kernel.org
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: Yury Norov <ynorov@marvell.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
13 files changed:
arch/arc/include/uapi/asm/unistd.h
arch/arm64/include/uapi/asm/unistd.h
arch/c6x/include/uapi/asm/unistd.h
arch/csky/include/uapi/asm/unistd.h
arch/h8300/include/uapi/asm/unistd.h
arch/hexagon/include/uapi/asm/unistd.h
arch/nds32/include/uapi/asm/unistd.h
arch/nios2/include/uapi/asm/unistd.h
arch/openrisc/include/uapi/asm/unistd.h
arch/riscv/include/uapi/asm/unistd.h
arch/unicore32/include/uapi/asm/unistd.h
include/uapi/asm-generic/unistd.h
scripts/checksyscalls.sh