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: v247-rc1~373^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b6ce3d2c0152a17210bb7fd31bb92a289f181a57;p=thirdparty%2Fsystemd.git basic/missing_syscall: fix syscall numbers for arm64 :( --- diff --git a/src/basic/missing_syscall.h b/src/basic/missing_syscall.h index 3bbedc6a7b6..a2acdc6c95f 100644 --- a/src/basic/missing_syscall.h +++ b/src/basic/missing_syscall.h @@ -491,9 +491,9 @@ static inline int missing_bpf(int cmd, union bpf_attr *attr, size_t size) { # define systemd_NR_pkey_mprotect 380 # elif defined __x86_64__ # define systemd_NR_pkey_mprotect 329 -# elif defined __arm__ -# define systemd_NR_pkey_mprotect 394 # elif defined __aarch64__ +# define systemd_NR_pkey_mprotect 288 +# elif defined __arm__ # define systemd_NR_pkey_mprotect 394 # elif defined __powerpc__ # define systemd_NR_pkey_mprotect 386 @@ -530,7 +530,9 @@ assert_cc(__NR_pkey_mprotect == systemd_NR_pkey_mprotect); /* ======================================================================= */ -#if defined __aarch64__ || defined __arm__ +#if defined __aarch64__ +# define systemd_NR_statx 291 +#elif defined __arm__ # define systemd_NR_statx 397 #elif defined __alpha__ # define systemd_NR_statx 522