]> git.karo-electronics.de Git - linux-beck.git/commit
drm/i915: error_buffer->ring should be signed
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 16 Feb 2012 10:03:29 +0000 (11:03 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 27 Feb 2012 17:09:46 +0000 (18:09 +0100)
commit5d1333fcce84e77ec865f6b09006401ed3f564b5
tree01a6cafb8fe43c202330332d35cdea472bff8d75
parenteadb29a9c52eb14a84b94fc29bb1cfa93ddc653e
drm/i915: error_buffer->ring should be signed

gcc seems to get uber-anal recently about these things.

Clarification from Dan Carpenter:

"Sorry, I should have said that it's not a gcc warning, it's a smatch
thing.  But also it's not uber-anal.  It's the exact level of anality
which is required to make the == -1 test work.  You can compare
unsigned int and longs to -1 and it works but for smaller types it
doesn't."

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h