From: Christophe Leroy Date: Tue, 22 Jan 2019 13:54:57 +0000 (+0000) Subject: powerpc/selftest: fix type of mftb() in null_syscall X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=beb4f4722cf60d9f0803054dec4eb5025f2cf594;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Michael Ellerman --- 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;