From: Chris Wilson Date: Thu, 23 Sep 2010 16:45:39 +0000 (+0100) Subject: drm/i915/ringbuffer: Fix sign of ring space. X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=780f0ca3e0cd3f0677d9149b7e14bf0878d1dbdc;p=linux-beck.git drm/i915/ringbuffer: Fix sign of ring space. As we presume space is signed when computing and looking for wrap along, make it so. Reported-by: Owain G. Ainsworth Signed-off-by: Chris Wilson --- diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.h b/drivers/gpu/drm/i915/intel_ringbuffer.h index bfbc4889909e..ce521010ce96 100644 --- a/drivers/gpu/drm/i915/intel_ringbuffer.h +++ b/drivers/gpu/drm/i915/intel_ringbuffer.h @@ -31,7 +31,7 @@ struct intel_ring_buffer { unsigned int head; unsigned int tail; - unsigned int space; + int space; struct intel_hw_status_page status_page; u32 irq_gem_seqno; /* last seq seem at irq time */