Skip to content

Commit f9527f1

Browse files
author
Jens Axboe
committed
Update swiotlb to use sg helpers
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
1 parent fa05f12 commit f9527f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/swiotlb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
#define OFFSET(val,align) ((unsigned long) \
3636
( (val) & ( (align) - 1)))
3737

38-
#define SG_ENT_VIRT_ADDRESS(sg) (page_address((sg)->page) + (sg)->offset)
38+
#define SG_ENT_VIRT_ADDRESS(sg) (sg_virt((sg)))
3939
#define SG_ENT_PHYS_ADDRESS(sg) virt_to_bus(SG_ENT_VIRT_ADDRESS(sg))
4040

4141
/*

0 commit comments

Comments
 (0)