diff options
author | Jens Axboe <jens.axboe@oracle.com> | 2007-10-22 19:44:53 +0200 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2007-10-22 21:19:58 +0200 |
commit | f9527f121bd42c5d300815fbf12216bc1a63f60f (patch) | |
tree | 209cb67705a13b511f76ddf4423abbb6664a7d28 /lib | |
parent | fa05f1286be25a8ce915c5dd492aea61126b3f33 (diff) | |
download | linux-f9527f121bd42c5d300815fbf12216bc1a63f60f.tar.gz linux-f9527f121bd42c5d300815fbf12216bc1a63f60f.tar.bz2 linux-f9527f121bd42c5d300815fbf12216bc1a63f60f.zip |
Update swiotlb to use sg helpers
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/swiotlb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/swiotlb.c b/lib/swiotlb.c index 752fd95323f3..1a8050ade861 100644 --- a/lib/swiotlb.c +++ b/lib/swiotlb.c @@ -35,7 +35,7 @@ #define OFFSET(val,align) ((unsigned long) \ ( (val) & ( (align) - 1))) -#define SG_ENT_VIRT_ADDRESS(sg) (page_address((sg)->page) + (sg)->offset) +#define SG_ENT_VIRT_ADDRESS(sg) (sg_virt((sg))) #define SG_ENT_PHYS_ADDRESS(sg) virt_to_bus(SG_ENT_VIRT_ADDRESS(sg)) /* |