From f197110e07b0be03d5d79329779b665ac46433d5 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Fri, 3 Dec 2004 10:22:15 +0000 Subject: [PATCH] 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 --- shared-core/sis_ds.h | 4 ++-- shared/sis_ds.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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; -- 2.7.4