]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
drm/i915: Silence sparse complaints over insufficient bitfield int types.
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 6 Jun 2010 14:40:18 +0000 (15:40 +0100)
committerEric Anholt <eric@anholt.net>
Mon, 2 Aug 2010 02:03:45 +0000 (19:03 -0700)
drivers/gpu/drm/i915/i915_drv.h|676 col 19| warning: dubious bitfield without explicit `signed' or `unsigned'
drivers/gpu/drm/i915/i915_drv.h|712 col 19| warning: dubious bitfield without explicit `signed' or `unsigned'

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/i915_drv.h

index f8f315deda8f8e005f7cdbdf79954dee5112e6e1..e40dcf2af4334e3a4b025272fd8c6df35e96e8a0 100644 (file)
@@ -673,7 +673,7 @@ struct drm_i915_gem_object {
         *
         * Size: 4 bits for 16 fences + sign (for FENCE_REG_NONE)
         */
-       int fence_reg : 5;
+       signed int fence_reg : 5;
 
        /**
         * Used for checking the object doesn't appear more than once
@@ -709,7 +709,7 @@ struct drm_i915_gem_object {
         *
         * In the worst case this is 1 + 1 + 1 + 2*2 = 7. That would fit into 3
         * bits with absolutely no headroom. So use 4 bits. */
-       int pin_count : 4;
+       unsigned int pin_count : 4;
 #define DRM_I915_GEM_OBJECT_MAX_PIN_COUNT 0xf
 
        /** AGP memory structure for our GTT binding. */