From: Thomas Graf Date: Tue, 5 May 2015 00:27:02 +0000 (+0200) Subject: rhashtable-test: Fix 64bit division X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=6decd63acacb3b8de81ccc435cf9acea8b6bdfeb;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: David S. Miller --- 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) total_time += time; } - pr_info("Average test time: %llu\n", total_time / runs); + do_div(total_time, runs); + pr_info("Average test time: %llu\n", total_time); return 0; }