History

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)

Alexey Kardashevskiy committed 12 years ago

Commit 89a2edd1 parent 92d18a61 file · +10 −0Browse files

Unified · Split

drivers/vfio/vfio_spapr_eeh.c+10−0
@@ -9,10 +9,15 @@ · 8 unmodified lines
99 * published by the Free Software Foundation.
1010 */
1111
12+#include <linux/module.h>
1213 #include <linux/uaccess.h>
1314 #include <linux/vfio.h>
1415 #include <asm/eeh.h>
1516
17+#define DRIVER_VERSION "0.1"
18+#define DRIVER_AUTHOR "Gavin Shan, IBM Corporation"
19+#define DRIVER_DESC "VFIO IOMMU SPAPR EEH"
20+
1621 /* We might build address mapping here for "fast" path later */
1722 int vfio_spapr_pci_eeh_open(struct pci_dev *pdev)
1823 {
@@ -88,3 +93,8 @@ long vfio_spapr_iommu_eeh_ioctl(struct iommu_group *group, · 69 unmodified lines
8893 return ret;
8994 }
9095 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);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t