kmsg: use do_div() to divide 64bit integer
authorKay Sievers <kay@vrfy.org>
Tue, 8 May 2012 11:04:17 +0000 (13:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 May 2012 15:55:26 +0000 (08:55 -0700)
commit5fc3249068c1ed87c6fd485f42ced24132405629
tree31b2c682930b03e45fe27bc34c8b376e00da408e
parenta9e73211fb0fc875637793a8af770f3678b6c278
kmsg: use do_div() to divide 64bit integer

On Tue, May 8, 2012 at 10:02 AM, Stephen Rothwell <sfr@canb.auug.org.au> wrote:
> kernel/built-in.o: In function `devkmsg_read':
> printk.c:(.text+0x27e8): undefined reference to `__udivdi3'
> Most probably the "msg->ts_nsec / 1000" since
> ts_nsec is a u64 and this is a 32 bit build ...

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Kay Sievers <kay@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/printk.c