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 <[email protected]>
---
 testcases/kernel/include/aarch64.in              | 2 --
 testcases/kernel/include/linux_syscall_numbers.h | 9 ---------
 2 files changed, 11 deletions(-)

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
-- 
1.8.1.2


------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to