Skip to content

Commit

Permalink
powerpc/selftest: fix type of mftb() in null_syscall
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christophe Leroy authored and Michael Ellerman committed Feb 21, 2019
1 parent 19f8a5b commit beb4f47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/testing/selftests/powerpc/benchmarks/null_syscall.c
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit beb4f47

Please sign in to comment.