public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH] Fix a surprising error in cacheflush01 test
@ 2009-06-19 14:13 Jiri Palecek >
  0 siblings, 0 replies; 3+ messages in thread
From: Jiri Palecek > @ 2009-06-19 14:13 UTC (permalink / raw)
  Cc: ltp-list

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 <jpalecek@web.de>
---
 .../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
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-06-25  9:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <4a413aa8.8d13f30a.1754.ffffd0c3SMTPIN_ADDED@mx.google.com>
2009-06-23 21:12 ` [LTP] [PATCH] Fix a surprising error in cacheflush01 test Mike Frysinger
2009-06-25  9:10   ` Subrata Modak
2009-06-19 14:13 Jiri Palecek >

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox