drm/i915: include intel-gtt.h only where needed
authorJani Nikula <jani.nikula@intel.com>
Mon, 15 Nov 2021 11:53:11 +0000 (13:53 +0200)
committerJani Nikula <jani.nikula@intel.com>
Mon, 15 Nov 2021 17:19:19 +0000 (19:19 +0200)
Only intel_gt.c and intel_ggtt.c need the interface.

Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/034f57db24d6936ac2e4e6830261d791240cdd79.1636977089.git.jani.nikula@intel.com
drivers/gpu/drm/i915/gt/intel_ggtt.c
drivers/gpu/drm/i915/gt/intel_gt.c
drivers/gpu/drm/i915/i915_drv.h

index 1fb4a03d7ac357d3f960257cbf36840bab537b5d..0c956e5e7fc78d0907441ffaf878dd43952f543b 100644 (file)
@@ -9,6 +9,7 @@
 #include <asm/smp.h>
 
 #include <drm/i915_drm.h>
+#include <drm/intel-gtt.h>
 
 #include "gem/i915_gem_lmem.h"
 
index 1cb1948ac95941c337098b7b6584d1b9b9f8fd20..f2422d48be32d8af3d393fdb1b7fef1240849f93 100644 (file)
@@ -3,6 +3,8 @@
  * Copyright © 2019 Intel Corporation
  */
 
+#include <drm/intel-gtt.h>
+
 #include "intel_gt_debugfs.h"
 
 #include "gem/i915_gem_lmem.h"
index e6ba8e96a411b69d54ebf1c6784b96f947840cf9..4d05cb0c0b77ff2b324cdf8226acd775cde9b161 100644 (file)
@@ -50,7 +50,6 @@
 #include <linux/stackdepot.h>
 #include <linux/xarray.h>
 
-#include <drm/intel-gtt.h>
 #include <drm/drm_gem.h>
 #include <drm/drm_auth.h>
 #include <drm/drm_cache.h>