Skip to content

Commit 9e92a6d

Browse files
committed
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
1 parent 2b8b294 commit 9e92a6d

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

  • drivers/gpu/drm/i915/gvt

drivers/gpu/drm/i915/gvt/gvt.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040
#include <asm/kvm_page_track.h>
4141

42-
#include "i915_drv.h"
42+
#include "gt/intel_gt.h"
4343
#include "intel_gvt.h"
4444

4545
#include "debug.h"
@@ -368,11 +368,6 @@ struct intel_gvt {
368368
struct dentry *debugfs_root;
369369
};
370370

371-
static inline struct intel_gvt *to_gvt(struct drm_i915_private *i915)
372-
{
373-
return i915->gvt;
374-
}
375-
376371
enum {
377372
/* Scheduling trigger by timer */
378373
INTEL_GVT_REQUEST_SCHED = 0,

0 commit comments

Comments
 (0)