Commit 1a8c55d3 authored by Ben Widawsky's avatar Ben Widawsky Committed by Daniel Vetter

drm/i915: [dinq] shut up six instances of -Warray-bounds

Introduced in commits c1cd90ed and d27b1e0eSigned-off-by: default avatarBen Widawsky <ben@bwidawsk.net>
[danvet: s/fix/shut up in the commit msg and add a comment to the
BUG_ON.]
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent eb2c0c81
...@@ -704,6 +704,7 @@ static void i915_ring_error_state(struct seq_file *m, ...@@ -704,6 +704,7 @@ static void i915_ring_error_state(struct seq_file *m,
struct drm_i915_error_state *error, struct drm_i915_error_state *error,
unsigned ring) unsigned ring)
{ {
BUG_ON(ring > VCS); /* shut up confused gcc */
seq_printf(m, "%s command stream:\n", ring_str(ring)); seq_printf(m, "%s command stream:\n", ring_str(ring));
seq_printf(m, " HEAD: 0x%08x\n", error->head[ring]); seq_printf(m, " HEAD: 0x%08x\n", error->head[ring]);
seq_printf(m, " TAIL: 0x%08x\n", error->tail[ring]); seq_printf(m, " TAIL: 0x%08x\n", error->tail[ring]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment