diff options
author | Jani Nikula <jani.nikula@intel.com> | 2023-09-26 15:19:01 +0300 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2023-10-11 14:18:43 +0300 |
commit | 9e92a6d1ba56fad5f5a9876af43b5888034a5e5e (patch) | |
tree | ae6839d22e7d598a1b8b6e657360b62c493b9825 /drivers/gpu/drm/i915/gvt | |
parent | 2b8b2948c6cbb3de3db5587b0777bb5740662790 (diff) | |
download | lwn-9e92a6d1ba56fad5f5a9876af43b5888034a5e5e.tar.gz lwn-9e92a6d1ba56fad5f5a9876af43b5888034a5e5e.zip |
drm/i915/gvt: remove unused to_gvt() and reduce includes
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
Diffstat (limited to 'drivers/gpu/drm/i915/gvt')
-rw-r--r-- | drivers/gpu/drm/i915/gvt/gvt.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/gpu/drm/i915/gvt/gvt.h b/drivers/gpu/drm/i915/gvt/gvt.h index 53a0a42a50db..3a0624fe63bf 100644 --- a/drivers/gpu/drm/i915/gvt/gvt.h +++ b/drivers/gpu/drm/i915/gvt/gvt.h @@ -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, |