From 8d105d2bff73ffa4bbfb7eed5f26fb2c7d069a53 Mon Sep 17 00:00:00 2001 From: Joseph Qi Date: Mon, 9 Dec 2019 10:20:41 +0800 Subject: [PATCH] alinux: jbd2: fix build warning on i386 Fix the following build warning on arch i386: ld: fs/jbd2/journal.o: in function `jbd2_seq_stats_show': journal.c:(.text+0x137d): undefined reference to `__udivdi3' Fixes: 7e2e7b9a6c2d ("alinux: jbd2: add new "stats" proc file") Reported-by: kbuild test robot Signed-off-by: Joseph Qi Reviewed-by: Jeffle Xu Acked-by: Caspar Zhang --- fs/jbd2/journal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/jbd2/journal.c b/fs/jbd2/journal.c index 440276af11b4..9ff4b74b84c6 100644 --- a/fs/jbd2/journal.c +++ b/fs/jbd2/journal.c @@ -1131,7 +1131,7 @@ static int jbd2_seq_stats_show(struct seq_file *seq, void *v) s->stats->run.rs_request_delay, s->stats->run.rs_running, s->stats->run.rs_locked, s->stats->run.rs_flushing, s->stats->run.rs_logging, - s->journal->j_average_commit_time / NSEC_PER_MSEC, + div_u64(s->journal->j_average_commit_time, NSEC_PER_MSEC), s->stats->run.rs_handle_count, s->stats->run.rs_blocks, s->stats->run.rs_blocks_logged, HZ, jiffies_to_msecs(HZ)); return 0; -- GitLab