lkml.org 
[lkml]   [2022]   [May]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH -next] dmaengine: tegra: Fix build error without IOMMU_API
    Date
    drivers/dma/tegra186-gpc-dma.c: In function ‘tegra_dma_probe’:
    drivers/dma/tegra186-gpc-dma.c:1364:24: error: ‘struct iommu_fwspec’ has no member named ‘ids’
    stream_id = iommu_spec->ids[0] & 0xffff;
    ^~

    Make TEGRA186_GPC_DMA depends on IOMMU_API to fix this.

    Fixes: ee17028009d4 ("dmaengine: tegra: Add tegra gpcdma driver")
    Signed-off-by: YueHaibing <yuehaibing@huawei.com>
    ---
    drivers/dma/Kconfig | 1 +
    1 file changed, 1 insertion(+)

    diff --git a/drivers/dma/Kconfig b/drivers/dma/Kconfig
    index cc1464e4acde..857b2174a4cb 100644
    --- a/drivers/dma/Kconfig
    +++ b/drivers/dma/Kconfig
    @@ -632,6 +632,7 @@ config TXX9_DMAC
    config TEGRA186_GPC_DMA
    tristate "NVIDIA Tegra GPC DMA support"
    depends on (ARCH_TEGRA || COMPILE_TEST) && ARCH_DMA_ADDR_T_64BIT
    + depends on IOMMU_API
    select DMA_ENGINE
    help
    Support for the NVIDIA Tegra General Purpose Central DMA controller.
    --
    2.17.1
    \
     
     \ /
      Last update: 2022-05-05 11:34    [W:2.780 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site