Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=01c0ad58548fa1fa76379d1bea060f6e1d6ba2af
Commit:     01c0ad58548fa1fa76379d1bea060f6e1d6ba2af
Parent:     b23e79fd87529706eb8e9e350226465b4abe70d2
Author:     Russell King <[EMAIL PROTECTED]>
AuthorDate: Fri Oct 26 17:47:34 2007 +0100
Committer:  Russell King <[EMAIL PROTECTED]>
CommitDate: Wed Oct 31 15:21:35 2007 +0000

    [ARM] Fix an rpc_defconfig regression
    
    Fix:
    
      CC      drivers/scsi/arm/powertec.o
    In file included from drivers/scsi/arm/powertec.c:29:
    drivers/scsi/arm/scsi.h: In function 'next_SCp':
    drivers/scsi/arm/scsi.h:42: error: 'struct scatterlist' has no member named 
'page'
    drivers/scsi/arm/scsi.h: In function 'init_SCp':
    drivers/scsi/arm/scsi.h:80: error: 'struct scatterlist' has no member named 
'page'
    
    Signed-off-by: Russell King <[EMAIL PROTECTED]>
---
 drivers/scsi/arm/scsi.h |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/drivers/scsi/arm/scsi.h b/drivers/scsi/arm/scsi.h
index 21ba571..bb6550e 100644
--- a/drivers/scsi/arm/scsi.h
+++ b/drivers/scsi/arm/scsi.h
@@ -38,9 +38,7 @@ static inline int next_SCp(struct scsi_pointer *SCp)
        if (ret) {
                SCp->buffer++;
                SCp->buffers_residual--;
-               SCp->ptr = (char *)
-                        (page_address(SCp->buffer->page) +
-                         SCp->buffer->offset);
+               SCp->ptr = sg_virt(SCp->buffer);
                SCp->this_residual = SCp->buffer->length;
        } else {
                SCp->ptr = NULL;
@@ -76,9 +74,7 @@ static inline void init_SCp(struct scsi_cmnd *SCpnt)
 
                SCpnt->SCp.buffer = (struct scatterlist *) 
SCpnt->request_buffer;
                SCpnt->SCp.buffers_residual = SCpnt->use_sg - 1;
-               SCpnt->SCp.ptr = (char *)
-                        (page_address(SCpnt->SCp.buffer->page) +
-                         SCpnt->SCp.buffer->offset);
+               SCpnt->SCp.ptr = sg_virt(SCpnt->SCp.buffer);
                SCpnt->SCp.this_residual = SCpnt->SCp.buffer->length;
                SCpnt->SCp.phase = SCpnt->request_bufflen;
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to