]> git.baikalelectronics.ru Git - kernel.git/commit
net: openvswitch: use div_u64() for 64-by-32 divisions
authorTonghao Zhang <xiangxia.m.yue@gmail.com>
Sat, 25 Apr 2020 03:39:48 +0000 (11:39 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 26 Apr 2020 03:48:21 +0000 (20:48 -0700)
commitc4a2a86cb31de1d890b6e0a453d9710546ead034
tree7f360ce3f991f68e75f17271535bccda1a5ca086
parentde186e451c453fc2e128a26b2d1479462f66f60c
net: openvswitch: use div_u64() for 64-by-32 divisions

Compile the kernel for arm 32 platform, the build warning found.
To fix that, should use div_u64() for divisions.
| net/openvswitch/meter.c:396: undefined reference to `__udivdi3'

[add more commit msg, change reported tag, and use div_u64 instead
of do_div by Tonghao]

Fixes: a4a8abac560e6dca ("net: openvswitch: use u64 for meter bucket")
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Tonghao Zhang <xiangxia.m.yue@gmail.com>
Tested-by: Tonghao Zhang <xiangxia.m.yue@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/meter.c