summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorChristophe Leroy <christophe.leroy@c-s.fr>2019-01-22 14:54:57 +0100
committerMichael Ellerman <mpe@ellerman.id.au>2019-02-21 14:10:15 +0100
commitbeb4f4722cf60d9f0803054dec4eb5025f2cf594 (patch)
tree0dcb8cefb75c400526de1e2c0911e6670f3064db /tools
parentpowerpc/powernv: Don't reprogram SLW image on every KVM guest entry/exit (diff)
downloadlinux-beb4f4722cf60d9f0803054dec4eb5025f2cf594.tar.xz
linux-beb4f4722cf60d9f0803054dec4eb5025f2cf594.zip
powerpc/selftest: fix type of mftb() in null_syscall
All callers of mftb() expect 'unsigned long', and the function itself only returns lower part of the TB so it really is 'unsigned long' not 'unsigned long long' Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'tools')
-rw-r--r--tools/testing/selftests/powerpc/benchmarks/null_syscall.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/powerpc/benchmarks/null_syscall.c b/tools/testing/selftests/powerpc/benchmarks/null_syscall.c
index ecc14d68e101..908de689a902 100644
--- a/tools/testing/selftests/powerpc/benchmarks/null_syscall.c
+++ b/tools/testing/selftests/powerpc/benchmarks/null_syscall.c
@@ -25,7 +25,7 @@ unsigned long long clock_frequency;
unsigned long long timebase_frequency;
double timebase_multiplier;
-static inline unsigned long long mftb(void)
+static inline unsigned long mftb(void)
{
unsigned long low;