]> git.baikalelectronics.ru Git - kernel.git/commit
vfio-pci: use 32-bit comparisons for register address for gcc-4.5
authorArnd Bergmann <arnd@arndb.de>
Fri, 30 Dec 2016 15:13:47 +0000 (08:13 -0700)
committerAlex Williamson <alex.williamson@redhat.com>
Fri, 30 Dec 2016 15:13:47 +0000 (08:13 -0700)
commitba69f7c9bf549d357ac5dae9cb228ad41dee4057
treedbfac210c0e042fa18aaddda999bb68ec328857a
parent34b138a3ce30737b4185f381cf7de9bc3792264d
vfio-pci: use 32-bit comparisons for register address for gcc-4.5

Using ancient compilers (gcc-4.5 or older) on ARM, we get a link
failure with the vfio-pci driver:

ERROR: "__aeabi_lcmp" [drivers/vfio/pci/vfio-pci.ko] undefined!

The reason is that the compiler tries to do a comparison of
a 64-bit range. This changes it to convert to a 32-bit number
explicitly first, as newer compilers do for themselves.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/pci/vfio_pci_rdwr.c