diff options
author | Lu Baolu <baolu.lu@linux.intel.com> | 2021-03-23 02:06:00 +0100 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2021-04-07 10:15:58 +0200 |
commit | 442b81836d6fdde1cf7dc5fc437a5f770c84498b (patch) | |
tree | c55dba8b2eb73cd93970b657b393c981dae8abbc /drivers/iommu/intel/pasid.c | |
parent | iommu/vt-d: Remove unused function declarations (diff) | |
download | linux-442b81836d6fdde1cf7dc5fc437a5f770c84498b.tar.xz linux-442b81836d6fdde1cf7dc5fc437a5f770c84498b.zip |
iommu/vt-d: Make unnecessarily global functions static
Make some functions static as they are only used inside pasid.c.
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20210323010600.678627-6-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/intel/pasid.c')
-rw-r--r-- | drivers/iommu/intel/pasid.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iommu/intel/pasid.c b/drivers/iommu/intel/pasid.c index 1a4105a5989b..4754830610a6 100644 --- a/drivers/iommu/intel/pasid.c +++ b/drivers/iommu/intel/pasid.c @@ -230,7 +230,7 @@ struct pasid_table *intel_pasid_get_table(struct device *dev) return info->pasid_table; } -int intel_pasid_get_dev_max_id(struct device *dev) +static int intel_pasid_get_dev_max_id(struct device *dev) { struct device_domain_info *info; @@ -241,7 +241,7 @@ int intel_pasid_get_dev_max_id(struct device *dev) return info->pasid_table->max_pasid; } -struct pasid_entry *intel_pasid_get_entry(struct device *dev, u32 pasid) +static struct pasid_entry *intel_pasid_get_entry(struct device *dev, u32 pasid) { struct device_domain_info *info; struct pasid_table *pasid_table; |