aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/host1x/debug.c
diff options
context:
space:
mode:
authorEmil Goode <[email protected]>2018-05-16 10:22:04 +0000
committerThierry Reding <[email protected]>2018-05-18 09:23:48 +0000
commit2f8a6da866eff746a9f8c7745790f3765baeb589 (patch)
treeb7e5eeec4e1e8b019fe9b7c39ff363c622b7256f /drivers/gpu/host1x/debug.c
parentdrm/tegra: Use drm_gem_fb_destroy (diff)
downloadkernel-2f8a6da866eff746a9f8c7745790f3765baeb589.tar.gz
kernel-2f8a6da866eff746a9f8c7745790f3765baeb589.zip
gpu: host1x: Fix compiler errors by converting to dma_addr_t
The compiler is complaining with the following errors: drivers/gpu/host1x/cdma.c:94:48: error: passing argument 3 of ‘dma_alloc_wc’ from incompatible pointer type [-Werror=incompatible-pointer-types] drivers/gpu/host1x/cdma.c:113:48: error: passing argument 3 of ‘dma_alloc_wc’ from incompatible pointer type [-Werror=incompatible-pointer-types] The expected pointer type of the third argument to dma_alloc_wc() is dma_addr_t but phys_addr_t is passed. Change the phys member of struct push_buffer to be dma_addr_t so that we pass the correct type to dma_alloc_wc(). Also check pb->mapped for non-NULL in the destroy function as that is the right way of checking if dma_alloc_wc() was successful. Signed-off-by: Emil Goode <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
Diffstat (limited to 'drivers/gpu/host1x/debug.c')
0 files changed, 0 insertions, 0 deletions