[Intel-gfx] [PATCH] drm/i915/gt: fix i915_reg_t initialization
Lucas De Marchi
lucas.demarchi at intel.com
Mon Mar 21 14:15:32 UTC 2022
On Mon, Mar 21, 2022 at 03:59:55PM +0200, Jani Nikula wrote:
>The initialization is there only to silence the compiler, but use the
>correct initializer for i915_reg_t.
>
>Cc: Lucas De Marchi <lucas.demarchi at intel.com>
>Signed-off-by: Jani Nikula <jani.nikula at intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi at intel.com>
Lucas De Marchi
>---
> drivers/gpu/drm/i915/gt/intel_ring_submission.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/drivers/gpu/drm/i915/gt/intel_ring_submission.c b/drivers/gpu/drm/i915/gt/intel_ring_submission.c
>index 6d7ec3bf1f32..5423bfd301ad 100644
>--- a/drivers/gpu/drm/i915/gt/intel_ring_submission.c
>+++ b/drivers/gpu/drm/i915/gt/intel_ring_submission.c
>@@ -767,7 +767,7 @@ static int mi_set_context(struct i915_request *rq,
> if (GRAPHICS_VER(i915) == 7) {
> if (num_engines) {
> struct intel_engine_cs *signaller;
>- i915_reg_t last_reg = {}; /* keep gcc quiet */
>+ i915_reg_t last_reg = INVALID_MMIO_REG; /* keep gcc quiet */
>
> *cs++ = MI_LOAD_REGISTER_IMM(num_engines);
> for_each_engine(signaller, engine->gt, id) {
>--
>2.30.2
>
More information about the Intel-gfx
mailing list