From: Eugene Syromyatnikov Date: Wed, 12 Oct 2016 07:24:00 +0000 (+0300) Subject: tests: move LL_PAIR and LL_VAL_TO_PAIR macros to tests.h X-Git-Tag: v4.15~218 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f0fb4e9de4b21a0864252c1a9a0c10eea42255dd;p=strace tests: move LL_PAIR and LL_VAL_TO_PAIR macros to tests.h * tests/fadvise.h (LL_PAIR, LL_VAL_TO_PAIR): Move ... * tests/tests.h: ... here. --- diff --git a/tests/fadvise.h b/tests/fadvise.h index bc790913..61f561d6 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 10bccdbc..537300cf 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 */