vfio/pci: Stub vfio_pci_vga_rw when !CONFIG_VFIO_PCI_VGA
authorAlex Williamson <alex.williamson@redhat.com>
Mon, 24 Jan 2022 23:11:37 +0000 (16:11 -0700)
committerAlex Williamson <alex.williamson@redhat.com>
Tue, 22 Feb 2022 20:45:02 +0000 (13:45 -0700)
commit6e031ec0e5a2dda53e12e0d2a7e9b15b47a3c502
tree0a477a34cf5e999415d25330c58014f3b7b5c5d7
parentcfb92440ee71adcc2105b0890bb01ac3cddb8507
vfio/pci: Stub vfio_pci_vga_rw when !CONFIG_VFIO_PCI_VGA

Resolve build errors reported against UML build for undefined
ioport_map() and ioport_unmap() functions.  Without this config
option a device cannot have vfio_pci_core_device.has_vga set,
so the existing function would always return -EINVAL anyway.

Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Link: https://lore.kernel.org/r/20220123125737.2658758-1-geert@linux-m68k.org
Link: https://lore.kernel.org/r/164306582968.3758255.15192949639574660648.stgit@omen
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/pci/vfio_pci_rdwr.c
include/linux/vfio_pci_core.h