summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMarkus Lidel <markus.lidel@shadowconnect.com>2004-10-18 18:18:33 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-10-18 18:18:33 -0700
commit87a27f7de90e48608d589bc2e7e2316bcfe2db2e (patch)
tree011ba22f55f45bc351bd6e957202f7496d8908ab /include
parentec2f9be18f3342ee92bb1399afc290b29e9c7a40 (diff)
[PATCH] i2o: quieten sparse 1-bit-bitfield warnings in i2o.h
- Single-bit bitfields should be unsigned. Quell sparse warnings for these. (from Randy Dunlap) Signed-off-by: Randy Dunlap <rddunlap@osdl.org> Signed-off-by: Markus Lidel <Markus.Lidel@shadowconnect.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/i2o.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/linux/i2o.h b/include/linux/i2o.h
index a68437640135..3481de9c5837 100644
--- a/include/linux/i2o.h
+++ b/include/linux/i2o.h
@@ -147,10 +147,10 @@ struct i2o_controller {
struct pci_dev *pdev; /* PCI device */
- int short_req:1; /* use small block sizes */
- int no_quiesce:1; /* dont quiesce before reset */
- int raptor:1; /* split bar */
- int promise:1; /* Promise controller */
+ unsigned int short_req:1; /* use small block sizes */
+ unsigned int no_quiesce:1; /* dont quiesce before reset */
+ unsigned int raptor:1; /* split bar */
+ unsigned int promise:1; /* Promise controller */
#ifdef CONFIG_MTRR
int mtrr_reg0;
@@ -180,9 +180,9 @@ struct i2o_controller {
struct i2o_dma in_queue; /* inbound message queue Host->IOP */
struct i2o_dma out_queue; /* outbound message queue IOP->Host */
- int battery:1; /* Has a battery backup */
- int io_alloc:1; /* An I/O resource was allocated */
- int mem_alloc:1; /* A memory resource was allocated */
+ unsigned int battery:1; /* Has a battery backup */
+ unsigned int io_alloc:1; /* An I/O resource was allocated */
+ unsigned int mem_alloc:1; /* A memory resource was allocated */
struct resource io_resource; /* I/O resource allocated to the IOP */
struct resource mem_resource; /* Mem resource allocated to the IOP */