From: Dave Airlie Date: Fri, 3 Dec 2004 10:22:15 +0000 (+0000) Subject: Make 1-bit fields be unsigned (no sign bit :). sparse complains about them: X-Git-Tag: submit/1.0/20121108.012404~1879 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f197110e07b0be03d5d79329779b665ac46433d5;p=profile%2Fivi%2Flibdrm.git Make 1-bit fields be unsigned (no sign bit :). sparse complains about them: drivers/char/drm/sis_ds.h:88:12: warning: dubious one-bit signed bitfield drivers/char/drm/sis_ds.h:89:16: warning: dubious one-bit signed bitfield Signed-off-by: Randy Dunlap Signed-off-by: Dave Airlie --- diff --git a/shared-core/sis_ds.h b/shared-core/sis_ds.h index eefc35d..6a64ba0 100644 --- a/shared-core/sis_ds.h +++ b/shared-core/sis_ds.h @@ -85,8 +85,8 @@ struct mem_block_t { struct mem_block_t *heap; int ofs, size; int align; - int free:1; - int reserved:1; + unsigned int free:1; + unsigned int reserved:1; }; typedef struct mem_block_t TMemBlock; typedef struct mem_block_t *PMemBlock; diff --git a/shared/sis_ds.h b/shared/sis_ds.h index 55c9966..8d33f87 100644 --- a/shared/sis_ds.h +++ b/shared/sis_ds.h @@ -85,8 +85,8 @@ struct mem_block_t { struct mem_block_t *heap; int ofs,size; int align; - int free:1; - int reserved:1; + unsigned int free:1; + unsigned int reserved:1; }; typedef struct mem_block_t TMemBlock; typedef struct mem_block_t *PMemBlock;