[mmotm] ahci: fix incompatible type warnings

From: KOSAKI Motohiro
Date: Mon Jul 14 2008 - 08:24:45 EST



Patch title: fix-ahci-flags-incompatible-type.patch
Against: mmotm Jul 14
Applies after: linux-next.patch


spin_lock_irqsave() require unsined long.

drivers/ata/ahci.c: In function 'ahci_transmit_led_message':
drivers/ata/ahci.c:1287: warning: comparison of distinct pointer types lacks a cast
drivers/ata/ahci.c:1295: warning: comparison of distinct pointer types lacks a cast
drivers/ata/ahci.c:1320: warning: comparison of distinct pointer types lacks a cast


Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@xxxxxxxxxxxxxx>
Signed-off-by: Hugh Dickins <hugh@xxxxxxxxxxx>
CC: Kristen Carlson Accardi <kristen.c.accardi@xxxxxxxxx>
CC: Jeff Garzik <jgarzik@xxxxxxxxxx>

---
drivers/ata/ahci.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Index: b/drivers/ata/ahci.c
===================================================================
--- a/drivers/ata/ahci.c
+++ b/drivers/ata/ahci.c
@@ -1270,7 +1270,7 @@ static ssize_t ahci_transmit_led_message
void __iomem *mmio = ap->host->iomap[AHCI_PCI_BAR];
u32 em_ctl;
u32 message[] = {0, 0};
- unsigned int flags;
+ unsigned long flags;
int pmp;
struct ahci_em_priv *emp;




--
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/