Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/i915: remove intel_vgpu_workload::{ring_context, restore_inhibit}

intel_vgpu_workload::ring_context was never used since its addition in
commit 28c4c6ca7f79 (drm/i915/gvt: vGPU workload submission) and
::restore_inhibit since its addition in commit e473405783c0
(drm/i915/gvt: vGPU workload scheduler). Drop them.

Found by https://github.com/jirislaby/clang-struct.

Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Cc: intel-gfx@lists.freedesktop.org
Acked-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240216065326.6910-7-jirislaby@kernel.org

authored by

Jiri Slaby (SUSE) and committed by
Rodrigo Vivi
8266cdae 9fda1fd9

-2
-2
drivers/gpu/drm/i915/gvt/scheduler.h
··· 104 104 105 105 /* execlist context information */ 106 106 struct execlist_ctx_descriptor_format ctx_desc; 107 - struct execlist_ring_context *ring_context; 108 107 unsigned long rb_head, rb_tail, rb_ctl, rb_start, rb_len; 109 108 unsigned long guest_rb_head; 110 - bool restore_inhibit; 111 109 struct intel_vgpu_elsp_dwords elsp_dwords; 112 110 bool emulate_schedule_in; 113 111 atomic_t shadow_ctx_active;