]> git.baikalelectronics.ru Git - kernel.git/commit
vfio iommu: Use shift operation for 64-bit integer division
authorKirti Wankhede <kwankhede@nvidia.com>
Tue, 2 Jun 2020 18:42:36 +0000 (00:12 +0530)
committerAlex Williamson <alex.williamson@redhat.com>
Tue, 2 Jun 2020 19:38:21 +0000 (13:38 -0600)
commita9d923375ab65ee1589dc4fed784cf56ac128945
tree77528895b6881c2bbfd290e9f0a77616576c232b
parentf787c261d261a949a3204fabc678332a058ecaa3
vfio iommu: Use shift operation for 64-bit integer division

Fixes compilation error with ARCH=i386.

Error fixed by this commit:
ld: drivers/vfio/vfio_iommu_type1.o: in function `vfio_dma_populate_bitmap':
>> vfio_iommu_type1.c:(.text+0x666): undefined reference to `__udivdi3'

Fixes: b7f095dc58ff ("vfio iommu: Implementation of ioctl for dirty pages tracking")
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Kirti Wankhede <kwankhede@nvidia.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/vfio_iommu_type1.c