diff options
author | Mark Haverkamp <markh@osdl.org> | 2005-04-27 09:05:51 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.(none)> | 2005-05-20 13:53:38 -0400 |
commit | 56b5871223f66d4a34e6e1069f241077e9f0a154 (patch) | |
tree | 8a259fd9d1544dd6d8b3a607b8589ffd2f935693 /drivers/scsi/aacraid/comminit.c | |
parent | 1c2fb3f38e250dd3b88612435869acf92b4f51e2 (diff) |
[SCSI] aacraid: remove sparse warnings
This patch addresses the sparse -Wbitwise warnings that Christoph wanted
me to eliminate. This mostly consisted of making data structure
elements of hardware associated structures the __le* equivalent.
Although there were a couple places where there was mixing of cpu and le
variable math. These changes have been tested on both an x86 and ppc
machine running bonnie++. The usage of the LE32_ALL_ONES macro has been
eliminated.
Signed-off-by: Mark Haverkamp <markh@osdl.org>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/aacraid/comminit.c')
-rw-r--r-- | drivers/scsi/aacraid/comminit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/aacraid/comminit.c b/drivers/scsi/aacraid/comminit.c index c3d3bce74378..34a4feb1dc0d 100644 --- a/drivers/scsi/aacraid/comminit.c +++ b/drivers/scsi/aacraid/comminit.c | |||
@@ -152,8 +152,8 @@ static void aac_queue_init(struct aac_dev * dev, struct aac_queue * q, u32 *mem, | |||
152 | init_waitqueue_head(&q->qfull); | 152 | init_waitqueue_head(&q->qfull); |
153 | spin_lock_init(&q->lockdata); | 153 | spin_lock_init(&q->lockdata); |
154 | q->lock = &q->lockdata; | 154 | q->lock = &q->lockdata; |
155 | q->headers.producer = mem; | 155 | q->headers.producer = (__le32 *)mem; |
156 | q->headers.consumer = mem+1; | 156 | q->headers.consumer = (__le32 *)(mem+1); |
157 | *(q->headers.producer) = cpu_to_le32(qsize); | 157 | *(q->headers.producer) = cpu_to_le32(qsize); |
158 | *(q->headers.consumer) = cpu_to_le32(qsize); | 158 | *(q->headers.consumer) = cpu_to_le32(qsize); |
159 | q->entries = qsize; | 159 | q->entries = qsize; |