aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/powerpc/include
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2018-07-26 22:24:57 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2018-08-07 21:49:25 +1000
commit95f9b3af401f5b4daeb908a2c658e820e969f4e3 (patch)
tree625d0c9d15d97876d0d243409249cf9b5edf3080 /tools/testing/selftests/powerpc/include
parentpowerpc: Add a checkpatch wrapper with our preferred settings (diff)
downloadlinux-dev-95f9b3af401f5b4daeb908a2c658e820e969f4e3.tar.xz
linux-dev-95f9b3af401f5b4daeb908a2c658e820e969f4e3.zip
selftests/powerpc: Add a helper for checking if we're on ppc64le
Some of our selftests have only been tested on ppc64le and crash or behave weirdly on ppc64/ppc32. So add a helper for checking the UTS machine. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'tools/testing/selftests/powerpc/include')
-rw-r--r--tools/testing/selftests/powerpc/include/utils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/testing/selftests/powerpc/include/utils.h b/tools/testing/selftests/powerpc/include/utils.h
index 735815b3ad7f..c58c370828b4 100644
--- a/tools/testing/selftests/powerpc/include/utils.h
+++ b/tools/testing/selftests/powerpc/include/utils.h
@@ -48,6 +48,8 @@ static inline bool have_hwcap2(unsigned long ftr2)
}
#endif
+bool is_ppc64le(void);
+
/* Yes, this is evil */
#define FAIL_IF(x) \
do { \