]> git.baikalelectronics.ru Git - kernel.git/commit
sch_tbf: use do_div() for 64-bit divide
authorYang Yingliang <yangyingliang@huawei.com>
Thu, 12 Dec 2013 02:57:22 +0000 (10:57 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Dec 2013 03:53:26 +0000 (22:53 -0500)
commit7140ab966ddd99e5d9f74f206a13311080f0c48b
treea0916db83806b2ec296ada4c9c62088a9813e4e5
parent3eb3dc0244eecc1620e71f97ed8220879297bc17
sch_tbf: use do_div() for 64-bit divide

It's doing a 64-bit divide which is not supported
on 32-bit architectures in psched_ns_t2l(). The
correct way to do this is to use do_div().

It's introduced by commit 79178f94512d
("net: sched: tbf: fix the calculation of max_size")

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_tbf.c