diff options
author | Thomas Graf <tgraf@suug.ch> | 2015-05-04 20:27:02 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-05-05 19:30:47 -0400 |
commit | 6decd63acacb3b8de81ccc435cf9acea8b6bdfeb (patch) | |
tree | 9d2f60ccd70a08b1443981fabc8c2000e8e609a5 /lib/test_rhashtable.c | |
parent | c936a79fc01ef1115a46f940944ebe7385845673 (diff) |
rhashtable-test: Fix 64bit division
A 64bit division went in unnoticed. Use do_div() to accomodate
non 64bit architectures.
Reported-by: kbuild test robot
Fixes: 1aa661f5c3df ("rhashtable-test: Measure time to insert, remove & traverse entries")
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/test_rhashtable.c')
-rw-r--r-- | lib/test_rhashtable.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/test_rhashtable.c b/lib/test_rhashtable.c index 6893e57e6782..c90777eae1f8 100644 --- a/lib/test_rhashtable.c +++ b/lib/test_rhashtable.c | |||
@@ -229,7 +229,8 @@ static int __init test_rht_init(void) | |||
229 | total_time += time; | 229 | total_time += time; |
230 | } | 230 | } |
231 | 231 | ||
232 | pr_info("Average test time: %llu\n", total_time / runs); | 232 | do_div(total_time, runs); |
233 | pr_info("Average test time: %llu\n", total_time); | ||
233 | 234 | ||
234 | return 0; | 235 | return 0; |
235 | } | 236 | } |