summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorNathan Chancellor <natechancellor@gmail.com>2019-01-22 07:23:01 +0300
committerDavid S. Miller <davem@davemloft.net>2019-01-23 08:00:37 +0300
commit33a0efa4baecd689da9474ce0e8b673eb6931c60 (patch)
tree83c0c8d02c5454e3f2b14090549a67f27836841e /drivers
parent8bbe833a65209632f96931415070bc3a490f2dc9 (diff)
downloadlinux-33a0efa4baecd689da9474ce0e8b673eb6931c60.tar.xz
devlink: Use DIV_ROUND_UP_ULL in DEVLINK_HEALTH_SIZE_TO_BUFFERS
When building this code on a 32-bit platform such as ARM, there is a link time error (lld error shown, happpens with ld.bfd too): ld.lld: error: undefined symbol: __aeabi_uldivmod >>> referenced by devlink.c >>> net/core/devlink.o:(devlink_health_buffers_create) in archive built-in.a This happens when using a regular division symbol with a u64 dividend. Use DIV_ROUND_UP_ULL, which wraps do_div, to avoid this situation. Fixes: cb5ccfbe73b3 ("devlink: Add health buffer support") Signed-off-by: Nathan Chancellor <natechancellor@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions