Hello,

this patch fixes a strange build failure in the cacheflush test. Also, it makes 
the condition where it is build a little broader.

Regards
   Jiri Palecek

Signed-off-by: Jiri Palecek <[email protected]>
---
 .../kernel/syscalls/cacheflush/cacheflush01.c      |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/testcases/kernel/syscalls/cacheflush/cacheflush01.c 
b/testcases/kernel/syscalls/cacheflush/cacheflush01.c
index cc2fd72..6d1c5f5 100644
--- a/testcases/kernel/syscalls/cacheflush/cacheflush01.c
+++ b/testcases/kernel/syscalls/cacheflush/cacheflush01.c
@@ -45,11 +45,12 @@
 #include <stdlib.h>
 #include <errno.h>
 
-#if defined __mips__
+
+#if defined __NR_cacheflush
 #include <asm/cachectl.h>
 int cacheflush(char *addr, int nbytes, int cache)
 {
-B  B  B  B return syscall(__NR_cacheflush, addr, nbytes, cache);
+       return syscall(__NR_cacheflush, addr, nbytes, cache);
 }
 #endif /* __mips__ */
 
@@ -77,7 +78,7 @@ char *TCID = "cacheflush01";  /* Test program identifier.*/
 int  testno;
 int  TST_TOTAL = 1;                   /* total number of tests in this file.   
*/
 
-#if defined __mips__
+#if defined __NR_cacheflush
 /* Extern Global Functions */
 
/******************************************************************************/
 /*                                                                            
*/
-- 
1.6.3.1




------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to