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

Next file: linux/fs/autofs/root.c
Previous file: linux/drivers/scsi/hosts.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.39/linux/drivers/scsi/scsi.h linux/drivers/scsi/scsi.h
@@ -218,7 +218,13 @@
 
 #include <asm/scatterlist.h>
 
+#ifdef __mc68000__
+#include <asm/pgtable.h>
+#define CONTIGUOUS_BUFFERS(X,Y) \
+	(VTOP((X)->b_data+(X)->b_size-1)+1 == VTOP((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