diff options
author | Alexey Kardashevskiy <aik@ozlabs.ru> | 2014-08-08 12:37:51 -0400 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2014-08-08 12:37:51 -0400 |
commit | 89a2edd62fe5983fa8648f8a3c3cd025c6aea584 (patch) | |
tree | 57df880ed2c51d04da1d6c98a4be5a7fc1efc3bd | |
parent | 92d18a6851fb6295466657ad1cf7fe88c2054ffa (diff) |
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>
-rw-r--r-- | drivers/vfio/vfio_spapr_eeh.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/vfio/vfio_spapr_eeh.c b/drivers/vfio/vfio_spapr_eeh.c index 949f98e997af..4779cace8036 100644 --- a/drivers/vfio/vfio_spapr_eeh.c +++ b/drivers/vfio/vfio_spapr_eeh.c | |||
@@ -9,10 +9,15 @@ | |||
9 | * published by the Free Software Foundation. | 9 | * published by the Free Software Foundation. |
10 | */ | 10 | */ |
11 | 11 | ||
12 | #include <linux/module.h> | ||
12 | #include <linux/uaccess.h> | 13 | #include <linux/uaccess.h> |
13 | #include <linux/vfio.h> | 14 | #include <linux/vfio.h> |
14 | #include <asm/eeh.h> | 15 | #include <asm/eeh.h> |
15 | 16 | ||
17 | #define DRIVER_VERSION "0.1" | ||
18 | #define DRIVER_AUTHOR "Gavin Shan, IBM Corporation" | ||
19 | #define DRIVER_DESC "VFIO IOMMU SPAPR EEH" | ||
20 | |||
16 | /* We might build address mapping here for "fast" path later */ | 21 | /* We might build address mapping here for "fast" path later */ |
17 | int vfio_spapr_pci_eeh_open(struct pci_dev *pdev) | 22 | int vfio_spapr_pci_eeh_open(struct pci_dev *pdev) |
18 | { | 23 | { |
@@ -88,3 +93,8 @@ long vfio_spapr_iommu_eeh_ioctl(struct iommu_group *group, | |||
88 | return ret; | 93 | return ret; |
89 | } | 94 | } |
90 | EXPORT_SYMBOL(vfio_spapr_iommu_eeh_ioctl); | 95 | EXPORT_SYMBOL(vfio_spapr_iommu_eeh_ioctl); |
96 | |||
97 | MODULE_VERSION(DRIVER_VERSION); | ||
98 | MODULE_LICENSE("GPL v2"); | ||
99 | MODULE_AUTHOR(DRIVER_AUTHOR); | ||
100 | MODULE_DESCRIPTION(DRIVER_DESC); | ||