diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2020-08-28 19:12:11 +0300 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2020-09-04 12:12:45 +0200 |
commit | c7eb900f5f45eeab1ea1bed997a2a12d8b5907bc (patch) | |
tree | 8fa8f2f8fb000f14df2031fdcb02500c73a62dec /include/linux/intel-iommu.h | |
parent | 3207fa325ad77f00e83aaaeca5ca79fa234528f1 (diff) | |
download | linux-c7eb900f5f45eeab1ea1bed997a2a12d8b5907bc.tar.gz linux-c7eb900f5f45eeab1ea1bed997a2a12d8b5907bc.tar.bz2 linux-c7eb900f5f45eeab1ea1bed997a2a12d8b5907bc.zip |
iommu/vt-d: Move intel_iommu_gfx_mapped to Intel IOMMU header
Static analyzer is not happy about intel_iommu_gfx_mapped declaration:
.../drivers/iommu/intel/iommu.c:364:5: warning: symbol 'intel_iommu_gfx_mapped' was not declared. Should it be static?
Move its declaration to Intel IOMMU header file.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Link: https://lore.kernel.org/r/20200828161212.71294-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'include/linux/intel-iommu.h')
-rw-r--r-- | include/linux/intel-iommu.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/intel-iommu.h b/include/linux/intel-iommu.h index b1ed2f25f7c0..6a3ddaabf3f5 100644 --- a/include/linux/intel-iommu.h +++ b/include/linux/intel-iommu.h @@ -792,6 +792,7 @@ extern int iommu_calculate_max_sagaw(struct intel_iommu *iommu); extern int dmar_disabled; extern int intel_iommu_enabled; extern int intel_iommu_tboot_noforce; +extern int intel_iommu_gfx_mapped; #else static inline int iommu_calculate_agaw(struct intel_iommu *iommu) { |