Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drivers/vfio: Allow EEH to be built as module

This adds necessary declarations to the SPAPR VFIO EEH module,
otherwise multiple dynamic linker errors reported:

vfio_spapr_eeh: Unknown symbol eeh_pe_set_option (err 0)
vfio_spapr_eeh: Unknown symbol eeh_pe_configure (err 0)
vfio_spapr_eeh: Unknown symbol eeh_pe_reset (err 0)
vfio_spapr_eeh: Unknown symbol eeh_pe_get_state (err 0)
vfio_spapr_eeh: Unknown symbol eeh_iommu_group_to_pe (err 0)
vfio_spapr_eeh: Unknown symbol eeh_dev_open (err 0)
vfio_spapr_eeh: Unknown symbol eeh_pe_set_option (err 0)
vfio_spapr_eeh: Unknown symbol eeh_pe_configure (err 0)
vfio_spapr_eeh: Unknown symbol eeh_pe_reset (err 0)
vfio_spapr_eeh: Unknown symbol eeh_pe_get_state (err 0)
vfio_spapr_eeh: Unknown symbol eeh_iommu_group_to_pe (err 0)
vfio_spapr_eeh: Unknown symbol eeh_dev_open (err 0)

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>

authored by

Alexey Kardashevskiy and committed by
Alex Williamson
89a2edd6 92d18a68

+10
+10
drivers/vfio/vfio_spapr_eeh.c
··· 9 9 * published by the Free Software Foundation. 10 10 */ 11 11 12 + #include <linux/module.h> 12 13 #include <linux/uaccess.h> 13 14 #include <linux/vfio.h> 14 15 #include <asm/eeh.h> 16 + 17 + #define DRIVER_VERSION "0.1" 18 + #define DRIVER_AUTHOR "Gavin Shan, IBM Corporation" 19 + #define DRIVER_DESC "VFIO IOMMU SPAPR EEH" 15 20 16 21 /* We might build address mapping here for "fast" path later */ 17 22 int vfio_spapr_pci_eeh_open(struct pci_dev *pdev) ··· 93 88 return ret; 94 89 } 95 90 EXPORT_SYMBOL(vfio_spapr_iommu_eeh_ioctl); 91 + 92 + MODULE_VERSION(DRIVER_VERSION); 93 + MODULE_LICENSE("GPL v2"); 94 + MODULE_AUTHOR(DRIVER_AUTHOR); 95 + MODULE_DESCRIPTION(DRIVER_DESC);