patch-1.3.16 linux/drivers/scsi/buslogic.c

Next file: linux/drivers/scsi/constants.h
Previous file: linux/drivers/scsi/aic7xxx.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.15/linux/drivers/scsi/buslogic.c linux/drivers/scsi/buslogic.c
@@ -192,7 +192,7 @@
 
 #if defined(MODULE) && !defined(GFP_DMA)
 # define CHECK_DMA_ADDR(isa, addr, badstmt) \
-    do { if ((isa) && (addr) > (void *)ISA_DMA_THRESHOLD) badstmt; } while (0)
+    do { if ((isa) && ((const void *)addr) > (const void *)ISA_DMA_THRESHOLD) badstmt; } while (0)
 #else
 # define CHECK_DMA_ADDR(isa, addr, badstmt)
 #endif

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this