patch-2.1.42 linux/drivers/scsi/scsi.h

Next file: linux/drivers/sound/configure.c
Previous file: linux/drivers/scsi/qlogicpti.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.41/linux/drivers/scsi/scsi.h linux/drivers/scsi/scsi.h
@@ -24,6 +24,7 @@
 #include <linux/random.h>
 
 #include <asm/hardirq.h>
+#include <asm/io.h>
 
 /*
  * Some defs, in case these are not defined elsewhere.
@@ -221,7 +222,7 @@
 #ifdef __mc68000__
 #include <asm/pgtable.h>
 #define CONTIGUOUS_BUFFERS(X,Y) \
-	(VTOP((X)->b_data+(X)->b_size-1)+1 == VTOP((Y)->b_data))
+	(virt_to_phys((X)->b_data+(X)->b_size-1)+1==virt_to_phys((Y)->b_data))
 #else
 #define CONTIGUOUS_BUFFERS(X,Y) ((X->b_data+X->b_size) == Y->b_data)
 #endif

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov