Skip to content

Commit df2640b

Browse files
Jiapeng Chongzhenyw
authored andcommitted
drm/i915/gvt: remove useless function
Fix the following clang warning: drivers/gpu/drm/i915/gvt/gtt.c:590:20: warning: unused function 'ppgtt_set_guest_root_entry' [-Wunused-function]. Reported-by: Abaci Robot <[email protected]> Signed-off-by: Jiapeng Chong <[email protected]> Signed-off-by: Zhenyu Wang <[email protected]> Link: http://patchwork.freedesktop.org/patch/msgid/1618294728-78952-1-git-send-email-jiapeng.chong@linux.alibaba.com Reviewed-by: Zhenyu Wang <[email protected]>
1 parent d153e8c commit df2640b

File tree

1 file changed

+0
-6
lines changed
  • drivers/gpu/drm/i915/gvt

1 file changed

+0
-6
lines changed

drivers/gpu/drm/i915/gvt/gtt.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -587,12 +587,6 @@ static void _ppgtt_set_root_entry(struct intel_vgpu_mm *mm,
587587
entry, index, false, 0, mm->vgpu);
588588
}
589589

590-
static inline void ppgtt_set_guest_root_entry(struct intel_vgpu_mm *mm,
591-
struct intel_gvt_gtt_entry *entry, unsigned long index)
592-
{
593-
_ppgtt_set_root_entry(mm, entry, index, true);
594-
}
595-
596590
static inline void ppgtt_set_shadow_root_entry(struct intel_vgpu_mm *mm,
597591
struct intel_gvt_gtt_entry *entry, unsigned long index)
598592
{

0 commit comments

Comments
 (0)