]> Git Repo - linux.git/commitdiff
iommu/vt-d: Move intel_iommu_gfx_mapped to Intel IOMMU header
authorAndy Shevchenko <[email protected]>
Fri, 28 Aug 2020 16:12:11 +0000 (19:12 +0300)
committerJoerg Roedel <[email protected]>
Fri, 4 Sep 2020 10:12:45 +0000 (12:12 +0200)
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 <[email protected]>
Reviewed-by: Lu Baolu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joerg Roedel <[email protected]>
include/drm/intel-gtt.h
include/linux/intel-iommu.h

index 71d81923e6b06ca1614ac7188c584a62ba4d7bba..abfefaaf897a0a4aa6145bd326e1089d7d44a9a6 100644 (file)
@@ -5,6 +5,7 @@
 #define        _DRM_INTEL_GTT_H
 
 #include <linux/agp_backend.h>
+#include <linux/intel-iommu.h>
 #include <linux/kernel.h>
 
 void intel_gtt_get(u64 *gtt_total,
@@ -33,8 +34,4 @@ void intel_gtt_clear_range(unsigned int first_entry, unsigned int num_entries);
 /* flag for GFDT type */
 #define AGP_USER_CACHED_MEMORY_GFDT (1 << 3)
 
-#ifdef CONFIG_INTEL_IOMMU
-extern int intel_iommu_gfx_mapped;
-#endif
-
 #endif
index b1ed2f25f7c0de2a697f659254a1200a70a40b53..6a3ddaabf3f506895ac2b9c6ac32afc890327688 100644 (file)
@@ -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)
 {
This page took 0.052812 seconds and 4 git commands to generate.