Skip to contentSkip to conversation

2.4 use __dma_buffer in scsi.h

PATCH New Roland Dreier 1 participant 1 message Jun 13, 2002 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 2.4 use __dma_buffer in scsi.h

Use __dma_buffer macro to align sense_buffer member of Scsi_Cmnd.

Patch is against 2.4.19-pre10.

Thanks,
Roland

 scsi.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)
drivers/scsi/scsi.h +2 -1
diff -Naur linux-2.4.19-pre10.orig/drivers/scsi/scsi.h linux-2.4.19-pre10/drivers/scsi/scsi.h
@@ -30,6 +30,7 @@
 #include <asm/hardirq.h>
 #include <asm/scatterlist.h>
 #include <asm/io.h>
+#include <asm/dma_buffer.h>
 
 /*
  * These are the values that the SCpnt->sc_data_direction and 
@@ -779,7 +780,7 @@
 	struct request request;	/* A copy of the command we are
 				   working on */
 
-	unsigned char sense_buffer[SCSI_SENSE_BUFFERSIZE];		/* obtained by REQUEST SENSE
+	unsigned char sense_buffer[SCSI_SENSE_BUFFERSIZE] __dma_buffer;		/* obtained by REQUEST SENSE
 						 * when CHECK CONDITION is
 						 * received on original command 
 						 * (auto-sense) */