aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorDan Williams <[email protected]>2015-08-17 14:13:26 +0000
committerJens Axboe <[email protected]>2015-08-17 14:13:26 +0000
commitdb0fa0cb015794dd19f664933d49c6ce902ec1e1 (patch)
tree3c3dddb796ddb24b24de8081df7851495cfafc11 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parentcrypto/omap-sham: remove an open coded access to ->page_link (diff)
downloadkernel-db0fa0cb015794dd19f664933d49c6ce902ec1e1.tar.gz
kernel-db0fa0cb015794dd19f664933d49c6ce902ec1e1.zip
scatterlist: use sg_phys()
Coccinelle cleanup to replace open coded sg to physical address translations. This is in preparation for introducing scatterlists that reference __pfn_t. // sg_phys.cocci: convert usage page_to_phys(sg_page(sg)) to sg_phys(sg) // usage: make coccicheck COCCI=sg_phys.cocci MODE=patch virtual patch @@ struct scatterlist *sg; @@ - page_to_phys(sg_page(sg)) + sg->offset + sg_phys(sg) @@ struct scatterlist *sg; @@ - page_to_phys(sg_page(sg)) + sg_phys(sg) & PAGE_MASK Signed-off-by: Dan Williams <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions