[PATCH 02/15] tests: Move LL_PAIR and LL_VAL_TO_PAIR macros to tests.h

Eugene Syromyatnikov evgsyr at gmail.com
Sat Oct 15 01:24:46 UTC 2016


* fadvise.h (LL_PAIR, LL_VAL_TO_PAIR): Move it ...
* tests.h: ... here.
---
 tests/fadvise.h |    7 -------
 tests/tests.h   |    7 +++++++
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/tests/fadvise.h b/tests/fadvise.h
index bc79091..61f561d 100644
--- a/tests/fadvise.h
+++ b/tests/fadvise.h
@@ -38,13 +38,6 @@
 # include "xlat.h"
 # include "xlat/advise.h"
 
-# if WORDS_BIGENDIAN
-#  define LL_PAIR(HI, LO) (HI), (LO)
-# else
-#  define LL_PAIR(HI, LO) (LO), (HI)
-# endif
-# define LL_VAL_TO_PAIR(llval) LL_PAIR((long) ((llval) >> 32), (long) (llval))
-
 static void do_fadvise(long fd, long long offset, long long llen, long advice);
 
 int
diff --git a/tests/tests.h b/tests/tests.h
index a482876..a557805 100644
--- a/tests/tests.h
+++ b/tests/tests.h
@@ -179,4 +179,11 @@ int send_mmsg(int, struct mmsghdr *, unsigned int, unsigned int);
 # define PRI__u64 PRI__64"u"
 # define PRI__x64 PRI__64"x"
 
+# if WORDS_BIGENDIAN
+#  define LL_PAIR(HI, LO) (HI), (LO)
+# else
+#  define LL_PAIR(HI, LO) (LO), (HI)
+# endif
+# define LL_VAL_TO_PAIR(llval) LL_PAIR((long) ((llval) >> 32), (long) (llval))
+
 #endif /* !STRACE_TESTS_H */
-- 
1.7.10.4





More information about the Strace-devel mailing list