[PATCH] mtd: use unsigned 1-bit fields

From: Randy.Dunlap
Date: Mon Mar 14 2005 - 19:13:23 EST


(resend)

Fix (22) bitfield/boolean sparse warnings:
include/linux/mtd/flashchip.h:65:23: warning: dubious one-bit signed bitfield
include/linux/mtd/flashchip.h:66:23: warning: dubious one-bit signed bitfield

Signed-off-by: Randy Dunlap <rddunlap@xxxxxxxx>

diffstat:=
include/linux/mtd/flashchip.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff -Naurp ./include/linux/mtd/flashchip.h~mtd_flashchip_bool ./include/linux/mtd/flashchip.h
--- ./include/linux/mtd/flashchip.h~mtd_flashchip_bool 2005-02-15 13:48:46.633263712 -0800
+++ ./include/linux/mtd/flashchip.h 2005-02-15 20:25:20.924981544 -0800
@@ -62,8 +62,8 @@ struct flchip {
flstate_t state;
flstate_t oldstate;

- int write_suspended:1;
- int erase_suspended:1;
+ unsigned int write_suspended:1;
+ unsigned int erase_suspended:1;
unsigned long in_progress_block_addr;

spinlock_t *mutex;


---
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/