diff options
author | Thierry Reding <treding@nvidia.com> | 2014-06-27 09:03:12 +0200 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2014-07-07 10:36:59 +0200 |
commit | b22f6434cf48af001330e370e9d781aeb668f98c (patch) | |
tree | 1d8b3b61fef931cebc89278be309b0d75e07669a /drivers/iommu/intel-iommu.c | |
parent | 066f2e98d8c7f043747fb08ebaa66bad723b1121 (diff) | |
download | lwn-b22f6434cf48af001330e370e9d781aeb668f98c.tar.gz lwn-b22f6434cf48af001330e370e9d781aeb668f98c.zip |
iommu: Constify struct iommu_ops
This structure is read-only data and should never be modified.
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/intel-iommu.c')
-rw-r--r-- | drivers/iommu/intel-iommu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c index f9e5f84ee952..41d9a2dcab2e 100644 --- a/drivers/iommu/intel-iommu.c +++ b/drivers/iommu/intel-iommu.c @@ -450,7 +450,7 @@ EXPORT_SYMBOL_GPL(intel_iommu_gfx_mapped); static DEFINE_SPINLOCK(device_domain_lock); static LIST_HEAD(device_domain_list); -static struct iommu_ops intel_iommu_ops; +static const struct iommu_ops intel_iommu_ops; static int __init intel_iommu_setup(char *str) { @@ -4453,7 +4453,7 @@ static void intel_iommu_remove_device(struct device *dev) iommu_device_unlink(iommu->iommu_dev, dev); } -static struct iommu_ops intel_iommu_ops = { +static const struct iommu_ops intel_iommu_ops = { .domain_init = intel_iommu_domain_init, .domain_destroy = intel_iommu_domain_destroy, .attach_dev = intel_iommu_attach_device, |