dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* re: drm/i915: switch ring->id to be a real id
@ 2012-02-16  6:40 Dan Carpenter
  2012-02-16 10:03 ` [PATCH] drm/i915: error_buffer->ring should be signed Daniel Vetter
  0 siblings, 1 reply; 5+ messages in thread
From: Dan Carpenter @ 2012-02-16  6:40 UTC (permalink / raw)
  To: daniel.vetter; +Cc: dri-devel

Hello Daniel Vetter,

The patch 96154f2faba5: "drm/i915: switch ring->id to be a real id" 
from Dec 14, 2011, leads to the following warning:
drivers/gpu/drm/i915/i915_debugfs.c:688 print_error_buffers()
	 error: err->ring is never equal to -1 (wrong type 0 - 15).

@@ -724,6 +724,7 @@ static void print_error_buffers(struct seq_file *m,
                           tiling_flag(err->tiling),
                           dirty_flag(err->dirty),
                           purgeable_flag(err->purgeable),
+                          err->ring != -1 ? " " : "",
                           ^^^^^^^^^^^^^^^
->ring is an unsigned bitfield so it's never equal to -1.

                           ring_str(err->ring),
                           cache_level_str(err->cache_level));

regards,
dan carpenter

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-02-27 17:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-16  6:40 drm/i915: switch ring->id to be a real id Dan Carpenter
2012-02-16 10:03 ` [PATCH] drm/i915: error_buffer->ring should be signed Daniel Vetter
2012-02-16 10:18   ` Paul Menzel
2012-02-16 11:16   ` Dan Carpenter
2012-02-27 17:15     ` Daniel Vetter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox