Files
linux/include/linux
Arnd Bergmann 5ca6fd4719 genirq/msi: Add stubs for get_cached_msi_msg/pci_write_msi_msg
commit 2f44e29cef006a4b0a4ecf7d4c5aac7d0fbb505c upstream.

A bug fix to the MSIx handling in vfio added references to functions
that may not be defined if MSI is disabled in the kernel, resulting in
this link error:

drivers/built-in.o: In function `vfio_msi_set_vector_signal':
:(.text+0x450808): undefined reference to `get_cached_msi_msg'
:(.text+0x45080c): undefined reference to `write_msi_msg'

As suggested by Alex Williamson, add stub implementations for
get_cached_msi_msg() and pci_write_msi_msg().

In case this bugfix gets backported, please note that the #ifdef
has changed over time, originally both functions were implemented
in drivers/pci/msi.c and controlled by CONFIG_PCI_MSI, while nowadays
get_cached_msi_msg() is part of the generic MSI support and can be
used without PCI.

Fixes: b8f02af096 ("vfio/pci: Restore MSIx message prior to enabling")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: Alex Williamson <alex.williamson@redhat.com>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: Bart Van Assche <bart.vanassche@sandisk.com>
Link: http://lkml.kernel.org/r/1413190208.4202.34.camel@ul30vt.home
Link: http://lkml.kernel.org/r/20170214215343.3307861-1-arnd@arndb.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-02-25 11:03:48 +01:00
..
2016-08-20 18:09:25 +02:00
2016-03-09 15:34:52 -08:00
2017-10-08 10:14:18 +02:00
2015-11-07 10:40:47 -07:00
2017-06-14 13:16:23 +02:00
2018-01-17 09:35:33 +01:00
2017-08-06 19:19:42 -07:00
2017-05-14 13:32:59 +02:00
2017-07-15 11:57:44 +02:00
2018-01-17 09:35:30 +01:00
2017-08-06 19:19:42 -07:00
2016-04-20 15:42:02 +09:00
2016-10-28 03:01:30 -04:00
2015-11-23 09:44:58 +01:00
2017-06-26 07:13:11 +02:00
2016-03-03 15:07:28 -08:00
2015-11-06 17:50:42 -08:00
2016-12-08 07:15:24 +01:00
2017-08-24 17:02:36 -07:00
2016-09-30 10:18:37 +02:00
2018-01-31 12:06:13 +01:00
2016-04-12 09:08:35 -07:00
2016-06-01 12:15:52 -07:00
2015-11-23 09:44:58 +01:00
2015-12-13 14:30:59 -08:00
2017-09-13 14:09:45 -07:00
2015-11-13 20:34:33 -05:00