From: Zbigniew Jędrzejewski-Szmek Date: Sat, 22 Aug 2020 14:55:56 +0000 (+0200) Subject: basic/missing_syscall: fix syscall numbers for arm64 :( X-Git-Tag: v246.3~3 X-Git-Url: http://git-history.diyao.me/?a=commitdiff_plain;h=ed3f97f9625f6349045a4b80581bbf76cc4fcdbd;p=systemd%2F.git basic/missing_syscall: fix syscall numbers for arm64 :( (cherry picked from commit b6ce3d2c0152a17210bb7fd31bb92a289f181a57) --- diff --git a/src/basic/missing_syscall.h b/src/basic/missing_syscall.h index b07c82a6c7..212f5907af 100644 --- a/src/basic/missing_syscall.h +++ b/src/basic/missing_syscall.h @@ -422,7 +422,7 @@ static inline int missing_bpf(int cmd, union bpf_attr *attr, size_t size) { # elif defined __arm__ # define __NR_pkey_mprotect 394 # elif defined __aarch64__ -# define __NR_pkey_mprotect 394 +# define __NR_pkey_mprotect 288 # elif defined __powerpc__ # define __NR_pkey_mprotect 386 # elif defined __s390__ @@ -451,7 +451,9 @@ static inline int missing_bpf(int cmd, union bpf_attr *attr, size_t size) { # if defined __NR_statx # undef __NR_statx # endif -# if defined __aarch64__ || defined __arm__ +# if defined __aarch64__ +# define __NR_statx 291 +# elif defined __arm__ # define __NR_statx 397 # elif defined __alpha__ # define __NR_statx 522