mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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 <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Signed-off-by: Yury Norov <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Acked-by: Mark Salter <[email protected]> [c6x] Acked-by: James Hogan <[email protected]> [metag] Acked-by: Ley Foon Tan <[email protected]> [nios2] Acked-by: Stafford Horne <[email protected]> [openrisc] Acked-by: Will Deacon <[email protected]> [arm64] Acked-by: Vineet Gupta <[email protected]> #arch/arc bits Signed-off-by: Yury Norov <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]>
This commit is contained in:
parent
942fa985e9
commit
80d7da1cac
13 changed files with 21 additions and 0 deletions
|
|
@ -2,6 +2,7 @@
|
|||
// Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd.
|
||||
|
||||
#define __ARCH_WANT_SYS_CLONE
|
||||
#define __ARCH_WANT_SET_GET_RLIMIT
|
||||
#include <asm-generic/unistd.h>
|
||||
|
||||
#define __NR_set_thread_area (__NR_arch_specific_syscall + 0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue