drm/i915: remove intel_gvt_mmio_info::{device, addr_range}
authorJiri Slaby (SUSE) <jirislaby@kernel.org>
Fri, 16 Feb 2024 06:53:10 +0000 (07:53 +0100)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Mon, 19 Feb 2024 20:34:54 +0000 (15:34 -0500)
intel_gvt_mmio_info::device is not used since commit e0f74ed4634d
(i915/gvt: Separate the MMIO tracking table from GVT-g) and ::addr_range
was never used since its addition in commit 12d14cc43b34 (drm/i915/gvt:
Introduce a framework for tracking HW registers.). 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-6-jirislaby@kernel.org
drivers/gpu/drm/i915/gvt/mmio.h

index bba154e..32ebacb 100644 (file)
@@ -62,10 +62,8 @@ typedef int (*gvt_mmio_func)(struct intel_vgpu *, unsigned int, void *,
 struct intel_gvt_mmio_info {
        u32 offset;
        u64 ro_mask;
-       u32 device;
        gvt_mmio_func read;
        gvt_mmio_func write;
-       u32 addr_range;
        struct hlist_node node;
 };