i2o: sg chaining support
authorJens Axboe <jens.axboe@oracle.com>
Tue, 24 Jul 2007 12:42:11 +0000 (14:42 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 16 Oct 2007 09:21:00 +0000 (11:21 +0200)
Acked-by: Alan Cox <alan@redhat.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
include/linux/i2o.h

index 9752307d16ba1569b904380d0e9d360625da1e49..7da5b98d90e6af4724bacbc074221d300e8fafe1 100644 (file)
@@ -32,6 +32,7 @@
 #include <linux/workqueue.h>   /* work_struct */
 #include <linux/mempool.h>
 #include <linux/mutex.h>
+#include <linux/scatterlist.h>
 
 #include <asm/io.h>
 #include <asm/semaphore.h>     /* Needed for MUTEX init macros */
@@ -837,7 +838,7 @@ static inline int i2o_dma_map_sg(struct i2o_controller *c,
                if ((sizeof(dma_addr_t) > 4) && c->pae_support)
                        *mptr++ = cpu_to_le32(i2o_dma_high(sg_dma_address(sg)));
 #endif
-               sg++;
+               sg = sg_next(sg);
        }
        *sg_ptr = mptr;