]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
drm/i915/gvt: remove unused to_gvt() and reduce includes
authorJani Nikula <jani.nikula@intel.com>
Tue, 26 Sep 2023 12:19:01 +0000 (15:19 +0300)
committerJani Nikula <jani.nikula@intel.com>
Wed, 11 Oct 2023 11:18:43 +0000 (14:18 +0300)
gvt.h has no need to include i915_drv.h once the unused to_gvt() has
been removed.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230926121904.499888-1-jani.nikula@intel.com
drivers/gpu/drm/i915/gvt/gvt.h

index 53a0a42a50db6a4c350dd6f7cff8e7e6c15908f7..3a0624fe63bf3b330d9e03c77497ba6c2e6889cd 100644 (file)
@@ -39,7 +39,7 @@
 
 #include <asm/kvm_page_track.h>
 
-#include "i915_drv.h"
+#include "gt/intel_gt.h"
 #include "intel_gvt.h"
 
 #include "debug.h"
@@ -368,11 +368,6 @@ struct intel_gvt {
        struct dentry *debugfs_root;
 };
 
-static inline struct intel_gvt *to_gvt(struct drm_i915_private *i915)
-{
-       return i915->gvt;
-}
-
 enum {
        /* Scheduling trigger by timer */
        INTEL_GVT_REQUEST_SCHED = 0,