diff --git a/drivers/gpu/drm/i915/gt/intel_lrc.c b/drivers/gpu/drm/i915/gt/intel_lrc.c index 1e3db37dea2b986044a75a6fffa291757533dfce..c3d7727021dba1c28c659b3450c2cd46a35052b7 100644 --- a/drivers/gpu/drm/i915/gt/intel_lrc.c +++ b/drivers/gpu/drm/i915/gt/intel_lrc.c @@ -2331,8 +2331,10 @@ static void process_csb(struct intel_engine_cs *engine) if (GEM_SHOW_DEBUG() && !i915_request_completed(*execlists->active) && !reset_in_progress(execlists)) { - struct i915_request *rq = *execlists->active; - const u32 *regs = rq->context->lrc_reg_state; + struct i915_request *rq __maybe_unused = + *execlists->active; + const u32 *regs __maybe_unused = + rq->context->lrc_reg_state; ENGINE_TRACE(engine, "ring:{start:0x%08x, head:%04x, tail:%04x, ctl:%08x, mode:%08x}\n",