diff options
author | Christoph Hellwig <hch@lst.de> | 2022-07-08 10:06:13 +0200 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2022-07-15 10:13:44 +0200 |
commit | 309c56e84602d894e7ca424b0b13837117568fca (patch) | |
tree | 6ab320f3a1122e8ad7684d158e5c36e4ce6273a4 /include/linux/iommu.h | |
parent | b4c9bf178ace26c52c9cac36f265ba95132a221d (diff) | |
download | lwn-309c56e84602d894e7ca424b0b13837117568fca.tar.gz lwn-309c56e84602d894e7ca424b0b13837117568fca.zip |
iommu: remove the unused dev_has_feat method
This method is never actually called.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Link: https://lore.kernel.org/r/20220708080616.238833-2-hch@lst.de
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'include/linux/iommu.h')
-rw-r--r-- | include/linux/iommu.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/linux/iommu.h b/include/linux/iommu.h index e6abd998dbe7..a3acdb46b939 100644 --- a/include/linux/iommu.h +++ b/include/linux/iommu.h @@ -164,8 +164,7 @@ struct iommu_iort_rmr_data { * supported, this feature must be enabled before and * disabled after %IOMMU_DEV_FEAT_SVA. * - * Device drivers query whether a feature is supported using - * iommu_dev_has_feature(), and enable it using iommu_dev_enable_feature(). + * Device drivers enable a feature using iommu_dev_enable_feature(). */ enum iommu_dev_features { IOMMU_DEV_FEAT_SVA, @@ -248,7 +247,6 @@ struct iommu_ops { bool (*is_attach_deferred)(struct device *dev); /* Per device IOMMU features */ - bool (*dev_has_feat)(struct device *dev, enum iommu_dev_features f); bool (*dev_feat_enabled)(struct device *dev, enum iommu_dev_features f); int (*dev_enable_feat)(struct device *dev, enum iommu_dev_features f); int (*dev_disable_feat)(struct device *dev, enum iommu_dev_features f); |