iommu_ops are not supposed to change at runtime.
Functions 'bus_set_iommu' working with const iommu_ops provided
by <linux/iommu.h>. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Acked-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
*/
#define S390_IOMMU_PGSIZES (~0xFFFUL)
-static struct iommu_ops s390_iommu_ops;
+static const struct iommu_ops s390_iommu_ops;
struct s390_domain {
struct iommu_domain domain;
iommu_device_sysfs_remove(&zdev->iommu_dev);
}
-static struct iommu_ops s390_iommu_ops = {
+static const struct iommu_ops s390_iommu_ops = {
.capable = s390_iommu_capable,
.domain_alloc = s390_domain_alloc,
.domain_free = s390_domain_free,