• Emil Goode's avatar
    gpu: host1x: Fix compiler errors by converting to dma_addr_t · 2f8a6da8
    Emil Goode authored
    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: default avatarEmil Goode <emil.fsw@goode.io>
    Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
    2f8a6da8
Name
Last commit
Last update
..
hw Loading commit data...
Kconfig Loading commit data...
Makefile Loading commit data...
bus.c Loading commit data...
bus.h Loading commit data...
cdma.c Loading commit data...
cdma.h Loading commit data...
channel.c Loading commit data...
channel.h Loading commit data...
debug.c Loading commit data...
debug.h Loading commit data...
dev.c Loading commit data...
dev.h Loading commit data...
intr.c Loading commit data...
intr.h Loading commit data...
job.c Loading commit data...
job.h Loading commit data...
mipi.c Loading commit data...
syncpt.c Loading commit data...
syncpt.h Loading commit data...