[patch 18/20] advansys-warning-workaround

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Andrew Morton <akpm@xxxxxxxx>

Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 drivers/scsi/advansys.c |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff -puN drivers/scsi/advansys.c~advansys-warning-workaround drivers/scsi/advansys.c
--- devel/drivers/scsi/advansys.c~advansys-warning-workaround	2006-04-20 00:46:42.000000000 -0700
+++ devel-akpm/drivers/scsi/advansys.c	2006-04-20 00:46:42.000000000 -0700
@@ -2056,11 +2056,12 @@ STATIC ASC_DCNT  AscGetMaxDmaCount(ushor
 /*
  * Define Adv Library required memory access macros.
  */
-#define ADV_MEM_READB(addr) readb(addr)
-#define ADV_MEM_READW(addr) readw(addr)
-#define ADV_MEM_WRITEB(addr, byte) writeb(byte, addr)
-#define ADV_MEM_WRITEW(addr, word) writew(word, addr)
-#define ADV_MEM_WRITEDW(addr, dword) writel(dword, addr)
+#warning these typecasts need to go away
+#define ADV_MEM_READB(addr) readb((void __iomem *)addr)
+#define ADV_MEM_READW(addr) readw((void __iomem *)addr)
+#define ADV_MEM_WRITEB(addr, byte) writeb(byte, (void __iomem *)addr)
+#define ADV_MEM_WRITEW(addr, word) writew(word, (void __iomem *)addr)
+#define ADV_MEM_WRITEDW(addr, dword) writel(dword, (void __iomem *)addr)
 
 #define ADV_CARRIER_COUNT (ASC_DEF_MAX_HOST_QNG + 15)
 
_
-
: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux