]> xenbits.xensource.com Git - xen.git/commit
ns16550: properly gate Exar PCIe UART cards support
authorOleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Fri, 20 Aug 2021 14:18:12 +0000 (16:18 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 20 Aug 2021 14:18:12 +0000 (16:18 +0200)
commit93713f444b3f29d6848527506db69cf78976b32d
tree09f365ce4e827a0cdbb950d3a234f5a099ab561c
parentb8238afd076189c1e1b459752f78e8639b5c2a3a
ns16550: properly gate Exar PCIe UART cards support

Arm is about to get PCI passthrough support which means CONFIG_HAS_PCI
will be enabled, so this code will fail as Arm doesn't have ns16550
PCI support:

ns16550.c:313:5: error: implicit declaration of function 'enable_exar_enhanced_bits' [-Werror=implicit-function-declaration]
  313 |     enable_exar_enhanced_bits(uart);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~

Fix this by gating Exar PCIe UART cards support with the above in mind.

Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/drivers/char/ns16550.c