Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Andy Shevchenko and committed by
Joerg Roedel
c7eb900f 3207fa32

+2 -4
+1 -4
include/drm/intel-gtt.h
··· 5 5 #define _DRM_INTEL_GTT_H 6 6 7 7 #include <linux/agp_backend.h> 8 + #include <linux/intel-iommu.h> 8 9 #include <linux/kernel.h> 9 10 10 11 void intel_gtt_get(u64 *gtt_total, ··· 33 32 34 33 /* flag for GFDT type */ 35 34 #define AGP_USER_CACHED_MEMORY_GFDT (1 << 3) 36 - 37 - #ifdef CONFIG_INTEL_IOMMU 38 - extern int intel_iommu_gfx_mapped; 39 - #endif 40 35 41 36 #endif
+1
include/linux/intel-iommu.h
··· 792 792 extern int dmar_disabled; 793 793 extern int intel_iommu_enabled; 794 794 extern int intel_iommu_tboot_noforce; 795 + extern int intel_iommu_gfx_mapped; 795 796 #else 796 797 static inline int iommu_calculate_agaw(struct intel_iommu *iommu) 797 798 {