summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorBen Widawsky <ben@bwidawsk.net>2012-02-15 14:42:42 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2012-03-22 17:45:06 +0100
commit1a8c55d37268d8b7ab7797e6d378caa697dbd029 (patch)
tree351aeeeea0148bc4d6b18349e94a4617620ad99f /drivers
parenteb2c0c818a4109489de53fd7334c21f1f26f6635 (diff)
downloadop-kernel-dev-1a8c55d37268d8b7ab7797e6d378caa697dbd029.zip
op-kernel-dev-1a8c55d37268d8b7ab7797e6d378caa697dbd029.tar.gz
drm/i915: [dinq] shut up six instances of -Warray-bounds
Introduced in commits c1cd90ed and d27b1e0e Signed-off-by: Ben Widawsky <ben@bwidawsk.net> [danvet: s/fix/shut up in the commit msg and add a comment to the BUG_ON.] Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/i915/i915_debugfs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c
index fdb7cce..66c90d4 100644
--- a/drivers/gpu/drm/i915/i915_debugfs.c
+++ b/drivers/gpu/drm/i915/i915_debugfs.c
@@ -704,6 +704,7 @@ static void i915_ring_error_state(struct seq_file *m,
struct drm_i915_error_state *error,
unsigned ring)
{
+ BUG_ON(ring > VCS); /* shut up confused gcc */
seq_printf(m, "%s command stream:\n", ring_str(ring));
seq_printf(m, " HEAD: 0x%08x\n", error->head[ring]);
seq_printf(m, " TAIL: 0x%08x\n", error->tail[ring]);
OpenPOWER on IntegriCloud