• Stefan Agner's avatar
    gpu: host1x: Fix compile error when IOMMU API is not available · e154592a
    Stefan Agner authored
    In case the IOMMU API is not available compiling host1x fails with
    the following error:
    
      In file included from drivers/gpu/host1x/hw/host1x06.c:27:
      drivers/gpu/host1x/hw/channel_hw.c: In function ‘host1x_channel_set_streamid’:
      drivers/gpu/host1x/hw/channel_hw.c:118:30: error: implicit declaration of function
        ‘dev_iommu_fwspec_get’; did you mean ‘iommu_fwspec_free’?  [-Werror=implicit-function-declaration]
      struct iommu_fwspec *spec = dev_iommu_fwspec_get(channel->dev->parent);
                                  ^~~~~~~~~~~~~~~~~~~~
                                  iommu_fwspec_free
    
    Fixes: de5469c2 ("gpu: host1x: Program the channel stream ID")
    Signed-off-by: default avatarStefan Agner <stefan@agner.ch>
    Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
    e154592a
channel_hw.c 6.32 KB