From 360714bfa56c0d7539cb3a8372beffdf7bdbaf10 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 12 Jul 2018 11:45:27 -0700 Subject: [PATCH] intel: tools: Fix uninitialized variable warnings in intel_dump_gpu. Reviewed-by: Rafael Antognolli --- src/intel/tools/intel_dump_gpu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/intel/tools/intel_dump_gpu.c b/src/intel/tools/intel_dump_gpu.c index 1201fa35ae0..766ba662d91 100644 --- a/src/intel/tools/intel_dump_gpu.c +++ b/src/intel/tools/intel_dump_gpu.c @@ -728,6 +728,8 @@ aub_dump_execlist(uint64_t batch_offset, int ring_flag) status_reg = EXECLIST_STATUS_BCSUNIT; control_reg = EXECLIST_CONTROL_BCSUNIT; break; + default: + unreachable("unknown ring"); } mem_trace_memory_write_header_out(ring_addr, 16, -- 2.30.2