diff options
author | Mohan Kumar D <mkumard@nvidia.com> | 2025-02-10 16:54:12 +0300 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2025-02-10 17:19:17 +0300 |
commit | 17987453a9d997c4d0749abc52f047bfa275427a (patch) | |
tree | 8bfdb09ad9e713a74bf65a5e5b414e017bdd1342 /lib/zstd/common/zstd_common.c | |
parent | 2014c95afecee3e76ca4a56956a936e23283f05b (diff) | |
download | linux-17987453a9d997c4d0749abc52f047bfa275427a.tar.xz |
dmaengine: tegra210-adma: Use div_u64 for 64 bit division
The ADMA base and page address are represented using a 64-bit variable.
To accurately derive the exact ADMA page number provided from the DT
properties, use the div_u64() to divide the address difference between
adma page and base address by the page offset.
This change fixes the below error
"ERROR: modpost: "__udivdi3" [drivers/dma/tegra210-adma.ko] undefined!
ld: drivers/dma/tegra210-adma.o: in function `tegra_adma_probe':
tegra210-adma.c:(.text+0x12cf): undefined reference to `__udivdi3'"
Fixes: 68811c928f88 ("dmaengine: tegra210-adma: Support channel page")
Cc: stable@vger.kernel.org
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202412250204.GCQhdKe3-lkp@intel.com/
Signed-off-by: Mohan Kumar D <mkumard@nvidia.com>
Reviewed-by: Jon Hunter <jonathanh@nvidia.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/20250210135413.2504272-2-mkumard@nvidia.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'lib/zstd/common/zstd_common.c')
0 files changed, 0 insertions, 0 deletions