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
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 */
17int vfio_spapr_pci_eeh_open(struct pci_dev *pdev)22int 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, · 69 unmodified lines
88 return ret;93 return ret;
89}94}
90EXPORT_SYMBOL(vfio_spapr_iommu_eeh_ioctl);95EXPORT_SYMBOL(vfio_spapr_iommu_eeh_ioctl);
96
97MODULE_VERSION(DRIVER_VERSION);
98MODULE_LICENSE("GPL v2");
99MODULE_AUTHOR(DRIVER_AUTHOR);
100MODULE_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