summaryrefslogtreecommitdiffstats
path: root/samples/vfio-mdev/mtty.c
diff options
context:
space:
mode:
authorArnd Bergmann2016-12-30 16:13:47 +0100
committerAlex Williamson2016-12-30 16:13:47 +0100
commit45e869714489431625c569d21fc952428d761476 (patch)
treedbfac210c0e042fa18aaddda999bb68ec328857a /samples/vfio-mdev/mtty.c
parentvfio-mdev: Make mdev_device private and abstract interfaces (diff)
downloadkernel-qcow2-linux-45e869714489431625c569d21fc952428d761476.tar.gz
kernel-qcow2-linux-45e869714489431625c569d21fc952428d761476.tar.xz
kernel-qcow2-linux-45e869714489431625c569d21fc952428d761476.zip
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>
Diffstat (limited to 'samples/vfio-mdev/mtty.c')
0 files changed, 0 insertions, 0 deletions