]> git.baikalelectronics.ru Git - kernel.git/commit
dpaa2-eth: Use proper division helper in dpaa2_dbg_ch_show
authorNathan Chancellor <natechancellor@gmail.com>
Tue, 28 Apr 2020 17:42:22 +0000 (10:42 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Apr 2020 21:31:43 +0000 (14:31 -0700)
commit1ca8cfb5a1186f2fdf20adb7b18e9ff97ff23d07
tree1fe22586458530a1ac1dd4ac25724c070f1a971e
parent161f73075af95f4d65a78160d8d13b8bd5910992
dpaa2-eth: Use proper division helper in dpaa2_dbg_ch_show

When building arm32 allmodconfig:

ERROR: modpost: "__aeabi_uldivmod"
[drivers/net/ethernet/freescale/dpaa2/fsl-dpaa2-eth.ko] undefined!

frames and cdan are both of type __u64 (unsigned long long) so we need
to use div64_u64 to avoid this issues.

Fixes: ae970734a1e6 ("dpaa2-eth: add channel stat to debugfs")
Link: https://github.com/ClangBuiltLinux/linux/issues/1012
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Reported-by: kernelci.org bot <bot@kernelci.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth-debugfs.c