lkml.org 
[lkml]   [2008]   [Jul]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[mmotm] ahci: fix incompatible type warnings

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@jp.fujitsu.com>
Signed-off-by: Hugh Dickins <hugh@veritas.com>
CC: Kristen Carlson Accardi <kristen.c.accardi@intel.com>
CC: Jeff Garzik <jgarzik@redhat.com>

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





\
 
 \ /
  Last update: 2008-07-14 14:27    [W:0.024 / U:0.268 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site