diff mbox

Remove bogus Aarch64 system call numbers

Message ID 1381482548-29543-1-git-send-email-riku.voipio@linaro.org
State Accepted
Headers show

Commit Message

Riku Voipio Oct. 11, 2013, 9:09 a.m. UTC
Aarch64 build fails with:

cacheflush01.c:52:26: fatal error: asm/cachectl.h: No such file or directory
 #include <asm/cachectl.h>

This is caused by bogus definitions of cacheflush and set_tls, which are
private 32bit ARM system calls. These should not be used on native
Aarch64 binaries. If they need to be tested, it is better done using ltp
compiled for 32bit ARM.

Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
---
 testcases/kernel/include/aarch64.in              | 2 --
 testcases/kernel/include/linux_syscall_numbers.h | 9 ---------
 2 files changed, 11 deletions(-)

Comments

Mike Frysinger Oct. 14, 2013, 5:23 a.m. UTC | #1
Acked-by: Mike Frysinger <vapier@gentoo.org>
-mike
Mike Frysinger Oct. 14, 2013, 5:41 a.m. UTC | #2
ah just pushed, thanks !
mike
diff mbox

Patch

diff --git a/testcases/kernel/include/aarch64.in b/testcases/kernel/include/aarch64.in
index a845be0..ceb67c6 100644
--- a/testcases/kernel/include/aarch64.in
+++ b/testcases/kernel/include/aarch64.in
@@ -253,5 +253,3 @@  clock_adjtime 266
 syncfs 267
 setns 268
 sendmmsg 269
-cacheflush 0x1002
-set_tls 0x1005
diff --git a/testcases/kernel/include/linux_syscall_numbers.h b/testcases/kernel/include/linux_syscall_numbers.h
index 38931cf..03664ce 100644
--- a/testcases/kernel/include/linux_syscall_numbers.h
+++ b/testcases/kernel/include/linux_syscall_numbers.h
@@ -801,12 +801,6 @@ 
 # ifndef __NR_sendmmsg
 #  define __NR_sendmmsg 269
 # endif
-# ifndef __NR_cacheflush
-#  define __NR_cacheflush 0x1002
-# endif
-# ifndef __NR_set_tls
-#  define __NR_set_tls 0x1005
-# endif
 #endif
 
 
@@ -12754,9 +12748,6 @@ 
 # ifndef __NR_settimeofday
 #  define __NR_settimeofday __LTP__NR_INVALID_SYSCALL
 # endif
-# ifndef __NR_set_tls
-#  define __NR_set_tls __LTP__NR_INVALID_SYSCALL
-# endif
 # ifndef __NR_setuid
 #  define __NR_setuid __LTP__NR_INVALID_SYSCALL
 # endif