arch: add pkey and rseq syscall numbers everywhere
Most architectures define system call numbers for the rseq and pkey system calls, even when they don't support the features, and perhaps never will. Only a few architectures are missing these, so just define them anyway for consistency. If we decide to add them later to one of these, the system call numbers won't get out of sync then. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Heiko Carstens <heiko.carstens@de.ibm.com> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
This commit is contained in:
parent
0d6040d468
commit
b41c51c8e1
@ -29,9 +29,5 @@
|
||||
#define __IGNORE_getppid
|
||||
#define __IGNORE_getuid
|
||||
|
||||
/* Alpha doesn't have protection keys. */
|
||||
#define __IGNORE_pkey_mprotect
|
||||
#define __IGNORE_pkey_alloc
|
||||
#define __IGNORE_pkey_free
|
||||
|
||||
#endif /* _ALPHA_UNISTD_H */
|
||||
|
@ -452,3 +452,7 @@
|
||||
521 common pwritev2 sys_pwritev2
|
||||
522 common statx sys_statx
|
||||
523 common io_pgetevents sys_io_pgetevents
|
||||
524 common pkey_mprotect sys_pkey_mprotect
|
||||
525 common pkey_alloc sys_pkey_alloc
|
||||
526 common pkey_free sys_pkey_free
|
||||
527 common rseq sys_rseq
|
||||
|
@ -339,3 +339,7 @@
|
||||
327 common io_pgetevents sys_io_pgetevents
|
||||
328 common perf_event_open sys_perf_event_open
|
||||
329 common seccomp sys_seccomp
|
||||
330 common pkey_mprotect sys_pkey_mprotect
|
||||
331 common pkey_alloc sys_pkey_alloc
|
||||
332 common pkey_free sys_pkey_free
|
||||
333 common rseq sys_rseq
|
||||
|
@ -388,6 +388,10 @@
|
||||
378 common pwritev2 sys_pwritev2
|
||||
379 common statx sys_statx
|
||||
380 common seccomp sys_seccomp
|
||||
381 common pkey_mprotect sys_pkey_mprotect
|
||||
382 common pkey_alloc sys_pkey_alloc
|
||||
383 common pkey_free sys_pkey_free
|
||||
384 common rseq sys_rseq
|
||||
# room for arch specific calls
|
||||
393 common semget sys_semget
|
||||
394 common semctl sys_semctl
|
||||
|
@ -12,9 +12,6 @@
|
||||
|
||||
#define __IGNORE_select /* newselect */
|
||||
#define __IGNORE_fadvise64 /* fadvise64_64 */
|
||||
#define __IGNORE_pkey_mprotect
|
||||
#define __IGNORE_pkey_alloc
|
||||
#define __IGNORE_pkey_free
|
||||
|
||||
#ifndef ASM_LINE_SEP
|
||||
# define ASM_LINE_SEP ;
|
||||
|
@ -367,3 +367,7 @@
|
||||
348 common pwritev2 sys_pwritev2 compat_sys_pwritev2
|
||||
349 common statx sys_statx
|
||||
350 common io_pgetevents sys_io_pgetevents compat_sys_io_pgetevents
|
||||
351 common pkey_mprotect sys_pkey_mprotect
|
||||
352 common pkey_alloc sys_pkey_alloc
|
||||
353 common pkey_free sys_pkey_free
|
||||
354 common rseq sys_rseq
|
||||
|
@ -11,9 +11,6 @@
|
||||
#include <asm/unistd_nr.h>
|
||||
|
||||
#define __IGNORE_time
|
||||
#define __IGNORE_pkey_mprotect
|
||||
#define __IGNORE_pkey_alloc
|
||||
#define __IGNORE_pkey_free
|
||||
|
||||
#define __ARCH_WANT_NEW_STAT
|
||||
#define __ARCH_WANT_OLD_READDIR
|
||||
|
@ -391,6 +391,9 @@
|
||||
381 common kexec_file_load sys_kexec_file_load sys_kexec_file_load
|
||||
382 common io_pgetevents sys_io_pgetevents compat_sys_io_pgetevents
|
||||
383 common rseq sys_rseq sys_rseq
|
||||
384 common pkey_mprotect sys_pkey_mprotect sys_pkey_mprotect
|
||||
385 common pkey_alloc sys_pkey_alloc sys_pkey_alloc
|
||||
386 common pkey_free sys_pkey_free sys_pkey_free
|
||||
# room for arch specific syscalls
|
||||
392 64 semtimedop sys_semtimedop -
|
||||
393 common semget sys_semget sys_semget
|
||||
|
@ -391,6 +391,10 @@
|
||||
381 common preadv2 sys_preadv2
|
||||
382 common pwritev2 sys_pwritev2
|
||||
383 common statx sys_statx
|
||||
384 common pkey_mprotect sys_pkey_mprotect
|
||||
385 common pkey_alloc sys_pkey_alloc
|
||||
386 common pkey_free sys_pkey_free
|
||||
387 common rseq sys_rseq
|
||||
# room for arch specific syscalls
|
||||
393 common semget sys_semget
|
||||
394 common semctl sys_semctl
|
||||
|
@ -59,9 +59,4 @@
|
||||
#define __IGNORE_getresgid
|
||||
#endif
|
||||
|
||||
/* Sparc doesn't have protection keys. */
|
||||
#define __IGNORE_pkey_mprotect
|
||||
#define __IGNORE_pkey_alloc
|
||||
#define __IGNORE_pkey_free
|
||||
|
||||
#endif /* _SPARC_UNISTD_H */
|
||||
|
@ -407,6 +407,10 @@
|
||||
359 common pwritev2 sys_pwritev2 compat_sys_pwritev2
|
||||
360 common statx sys_statx
|
||||
361 common io_pgetevents sys_io_pgetevents compat_sys_io_pgetevents
|
||||
362 common pkey_mprotect sys_pkey_mprotect
|
||||
363 common pkey_alloc sys_pkey_alloc
|
||||
364 common pkey_free sys_pkey_free
|
||||
365 common rseq sys_rseq
|
||||
# room for arch specific syscalls
|
||||
392 64 semtimedop sys_semtimedop
|
||||
393 common semget sys_semget
|
||||
|
@ -372,3 +372,4 @@
|
||||
349 common pkey_alloc sys_pkey_alloc
|
||||
350 common pkey_free sys_pkey_free
|
||||
351 common statx sys_statx
|
||||
352 common rseq sys_rseq
|
||||
|
Loading…
Reference in New Issue
Block a user