[PATCH] powerpc/selftest: fix type of mftb() in null_syscall

Subsystems: kernel selftest framework, the rest

STALE2786d

2 messages, 2 authors, 2019-02-22 · open the first message on its own page

[PATCH] powerpc/selftest: fix type of mftb() in null_syscall

From: Christophe Leroy <hidden>
Date: 2019-01-22 13:55:01

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 <redacted>
---
 tools/testing/selftests/powerpc/benchmarks/null_syscall.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
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;
 
-- 
2.13.3

Re: powerpc/selftest: fix type of mftb() in null_syscall

From: Michael Ellerman <hidden>
Date: 2019-02-22 09:48:50

On Tue, 2019-01-22 at 13:54:57 UTC, Christophe Leroy wrote:
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 <redacted>
Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/beb4f4722cf60d9f0803054dec4eb502

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help