iommu: static inline iommu group stub functions
Signed-off-by: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
This commit is contained in:
committed by
Joerg Roedel
parent
979570e029
commit
bef83de5a0
@@ -256,72 +256,78 @@ static inline void iommu_set_fault_handler(struct iommu_domain *domain,
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
int iommu_attach_group(struct iommu_domain *domain, struct iommu_group *group)
|
static inline int iommu_attach_group(struct iommu_domain *domain,
|
||||||
|
struct iommu_group *group)
|
||||||
{
|
{
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
|
|
||||||
void iommu_detach_group(struct iommu_domain *domain, struct iommu_group *group)
|
static inline void iommu_detach_group(struct iommu_domain *domain,
|
||||||
|
struct iommu_group *group)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
struct iommu_group *iommu_group_alloc(void)
|
static inline struct iommu_group *iommu_group_alloc(void)
|
||||||
{
|
{
|
||||||
return ERR_PTR(-ENODEV);
|
return ERR_PTR(-ENODEV);
|
||||||
}
|
}
|
||||||
|
|
||||||
void *iommu_group_get_iommudata(struct iommu_group *group)
|
static inline void *iommu_group_get_iommudata(struct iommu_group *group)
|
||||||
{
|
{
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
void iommu_group_set_iommudata(struct iommu_group *group, void *iommu_data,
|
static inline void iommu_group_set_iommudata(struct iommu_group *group,
|
||||||
void (*release)(void *iommu_data))
|
void *iommu_data,
|
||||||
|
void (*release)(void *iommu_data))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
int iommu_group_set_name(struct iommu_group *group, const char *name)
|
static inline int iommu_group_set_name(struct iommu_group *group,
|
||||||
|
const char *name)
|
||||||
{
|
{
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
|
|
||||||
int iommu_group_add_device(struct iommu_group *group, struct device *dev)
|
static inline int iommu_group_add_device(struct iommu_group *group,
|
||||||
|
struct device *dev)
|
||||||
{
|
{
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
|
|
||||||
void iommu_group_remove_device(struct device *dev)
|
static inline void iommu_group_remove_device(struct device *dev)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
int iommu_group_for_each_dev(struct iommu_group *group, void *data,
|
static inline int iommu_group_for_each_dev(struct iommu_group *group,
|
||||||
int (*fn)(struct device *, void *))
|
void *data,
|
||||||
|
int (*fn)(struct device *, void *))
|
||||||
{
|
{
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct iommu_group *iommu_group_get(struct device *dev)
|
static inline struct iommu_group *iommu_group_get(struct device *dev)
|
||||||
{
|
{
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
void iommu_group_put(struct iommu_group *group)
|
static inline void iommu_group_put(struct iommu_group *group)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
int iommu_group_register_notifier(struct iommu_group *group,
|
static inline int iommu_group_register_notifier(struct iommu_group *group,
|
||||||
struct notifier_block *nb)
|
struct notifier_block *nb)
|
||||||
{
|
{
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
|
|
||||||
int iommu_group_unregister_notifier(struct iommu_group *group,
|
static inline int iommu_group_unregister_notifier(struct iommu_group *group,
|
||||||
struct notifier_block *nb)
|
struct notifier_block *nb)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int iommu_group_id(struct iommu_group *group)
|
static inline int iommu_group_id(struct iommu_group *group)
|
||||||
{
|
{
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user