Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 12 Jun 2002 20:24:56 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 12 Jun 2002 20:24:55 -0400 Received: from [209.237.59.50] ([209.237.59.50]:30291 "EHLO zinfandel.topspincom.com") by vger.kernel.org with ESMTP id ; Wed, 12 Jun 2002 20:24:53 -0400 To: Marcelo Tosatti Cc: David Brownell , Oliver Neukum , linux-kernel@vger.kernel.org Subject: [PATCH] 2.4 use __dma_buffer in scsi.h X-Message-Flag: Warning: May contain useful information X-Priority: 1 X-MSMail-Priority: High From: Roland Dreier Date: 12 Jun 2002 17:24:50 -0700 Message-ID: <52sn3s2ffx.fsf@topspin.com> Lines: 30 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Common Lisp) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org 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(-) diff -Naur linux-2.4.19-pre10.orig/drivers/scsi/scsi.h linux-2.4.19-pre10/drivers/scsi/scsi.h --- linux-2.4.19-pre10.orig/drivers/scsi/scsi.h Wed Jun 12 15:08:52 2002 +++ linux-2.4.19-pre10/drivers/scsi/scsi.h Wed Jun 12 16:28:21 2002 @@ -30,6 +30,7 @@ #include #include #include +#include /* * 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) */ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/