projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa05f12
)
Update swiotlb to use sg helpers
author
Jens Axboe
<jens.axboe@oracle.com>
Mon, 22 Oct 2007 17:44:53 +0000
(19:44 +0200)
committer
Jens Axboe
<jens.axboe@oracle.com>
Mon, 22 Oct 2007 19:19:58 +0000
(21:19 +0200)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
lib/swiotlb.c
patch
|
blob
|
blame
|
history
diff --git
a/lib/swiotlb.c
b/lib/swiotlb.c
index 752fd95323f3d777496f93c2144c7e158d936789..1a8050ade86159877fd6eb4486954c7719bfc28d 100644
(file)
--- 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))
/*