From 54f827ce57ff9b5012d96b5493e4c1a9df0f6074 Mon Sep 17 00:00:00 2001 From: Joseph Qi Date: Sat, 1 Feb 2020 13:56:28 +0800 Subject: [PATCH 0590/2944] alinux: jbd2: fix build warnings Fix the following build warnings: fs/jbd2/transaction.o: In function `jbd2_journal_stop': (.text+0x2934): undefined reference to `__udivdi3' (.text+0x2970): undefined reference to `__udivdi3' Fixes: 861575c9d0c3 ("alinux: jbd2: track slow handle which is preventing transaction committing") Reported-by: kbuild test robot Signed-off-by: Joseph Qi Reviewed-by: Xiaoguang Wang --- fs/jbd2/transaction.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/jbd2/transaction.c b/fs/jbd2/transaction.c index 9c1a842..cd5a879 100644 --- a/fs/jbd2/transaction.c +++ b/fs/jbd2/transaction.c @@ -1831,7 +1831,8 @@ int jbd2_journal_stop(handle_t *handle) handle->h_requested_credits, handle->h_requested_credits - handle->h_buffer_credits, delta, jiffies_to_msecs(journal_space_wait), - sched_wait / NSEC_PER_MSEC, io_wait / NSEC_PER_MSEC); + div_u64(sched_wait, NSEC_PER_MSEC), + div_u64(io_wait, NSEC_PER_MSEC)); } while (0); /* -- 1.8.3.1