Commit 23baa19f authored by Dave Airlie's avatar Dave Airlie

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: default avatarRandy Dunlap <rddunlap@osdl.org>
Signed-off-by: default avatarDave Airlie <airlied@linux.ie>
parent 7ce62ecc
...@@ -85,8 +85,8 @@ struct mem_block_t { ...@@ -85,8 +85,8 @@ struct mem_block_t {
struct mem_block_t *heap; struct mem_block_t *heap;
int ofs,size; int ofs,size;
int align; int align;
int free:1; unsigned int free:1;
int reserved:1; unsigned int reserved:1;
}; };
typedef struct mem_block_t TMemBlock; typedef struct mem_block_t TMemBlock;
typedef struct mem_block_t *PMemBlock; typedef struct mem_block_t *PMemBlock;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment