]> git.hungrycats.org Git - linux/commitdiff
[PATCH] i2o: quieten sparse 1-bit-bitfield warnings in i2o.h
authorMarkus Lidel <markus.lidel@shadowconnect.com>
Tue, 19 Oct 2004 01:18:33 +0000 (18:18 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 19 Oct 2004 01:18:33 +0000 (18:18 -0700)
- 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>
include/linux/i2o.h

index a68437640135ef161e9667f211e33d05c477171d..3481de9c5837db1bce8153e3a81177ffd254ba4a 100644 (file)
@@ -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 */