Commit e4f7feb4 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] gcc-3.5: atp870u.c

drivers/scsi/atp870u.c: In function `send_s870':                                drivers/scsi/atp870u.c:706: error: invalid lvalue in assignment
drivers/scsi/atp870u.c:707: error: invalid lvalue in assignment
drivers/scsi/atp870u.c:708: error: invalid lvalue in assignment
drivers/scsi/atp870u.c:713: error: invalid lvalue in assignment                 drivers/scsi/atp870u.c:714: error: invalid lvalue in assignment
drivers/scsi/atp870u.c:715: error: invalid lvalue in assignment
drivers/scsi/atp870u.c:718: error: invalid lvalue in assignment
drivers/scsi/atp870u.c:727: error: invalid lvalue in assignment                 drivers/scsi/atp870u.c:728: error: invalid lvalue in assignment
drivers/scsi/atp870u.c:729: error: invalid lvalue in assignment
drivers/scsi/atp870u.c:734: error: invalid lvalue in assignment                 drivers/scsi/atp870u.c:735: error: invalid lvalue in assignment
drivers/scsi/atp870u.c:736: error: invalid lvalue in assignment
parent e5432133
......@@ -703,19 +703,19 @@ static void send_s870(struct Scsi_Host *host)
bttl = sg_dma_address(&sgpnt[j]);
l = sg_dma_len(&sgpnt[j]);
while (l > 0x10000) {
(u16) (((u16 *) (prd))[i + 3]) = 0x0000;
(u16) (((u16 *) (prd))[i + 2]) = 0x0000;
(u32) (((u32 *) (prd))[i >> 1]) = cpu_to_le32(bttl);
(((u16 *) (prd))[i + 3]) = 0x0000;
(((u16 *) (prd))[i + 2]) = 0x0000;
(((u32 *) (prd))[i >> 1]) = cpu_to_le32(bttl);
l -= 0x10000;
bttl += 0x10000;
i += 0x04;
}
(u32) (((u32 *) (prd))[i >> 1]) = cpu_to_le32(bttl);
(u16) (((u16 *) (prd))[i + 2]) = cpu_to_le16(l);
(u16) (((u16 *) (prd))[i + 3]) = 0;
(((u32 *) (prd))[i >> 1]) = cpu_to_le32(bttl);
(((u16 *) (prd))[i + 2]) = cpu_to_le16(l);
(((u16 *) (prd))[i + 3]) = 0;
i += 0x04;
}
(u16) (((u16 *) (prd))[i - 1]) = cpu_to_le16(0x8000);
(((u16 *) (prd))[i - 1]) = cpu_to_le16(0x8000);
} else {
/*
* For a linear request write a chain of blocks
......@@ -724,16 +724,16 @@ static void send_s870(struct Scsi_Host *host)
l = workrequ->request_bufflen;
i = 0;
while (l > 0x10000) {
(u16) (((u16 *) (prd))[i + 3]) = 0x0000;
(u16) (((u16 *) (prd))[i + 2]) = 0x0000;
(u32) (((u32 *) (prd))[i >> 1]) = cpu_to_le32(bttl);
(((u16 *) (prd))[i + 3]) = 0x0000;
(((u16 *) (prd))[i + 2]) = 0x0000;
(((u32 *) (prd))[i >> 1]) = cpu_to_le32(bttl);
l -= 0x10000;
bttl += 0x10000;
i += 0x04;
}
(u16) (((u16 *) (prd))[i + 3]) = cpu_to_le16(0x8000);
(u16) (((u16 *) (prd))[i + 2]) = cpu_to_le16(l);
(u32) (((u32 *) (prd))[i >> 1]) = cpu_to_le32(bttl);
(((u16 *) (prd))[i + 3]) = cpu_to_le16(0x8000);
(((u16 *) (prd))[i + 2]) = cpu_to_le16(l);
(((u32 *) (prd))[i >> 1]) = cpu_to_le32(bttl);
}
tmpcip = tmpcip + 4;
dev->id[target_id].prdaddru = dev->id[target_id].prd_phys;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment