• Chen Zhou's avatar
    drm/nouveau: fix build error without CONFIG_IOMMU_API · ee864216
    Chen Zhou authored
    If CONFIG_IOMMU_API is n, build fails:
    
    vers/gpu/drm/nouveau/nvkm/subdev/ltc/gp10b.c:37:9: error: implicit declaration of function dev_iommu_fwspec_get; did you mean iommu_fwspec_free? [-Werror=implicit-function-declaration]
      spec = dev_iommu_fwspec_get(device->dev);
             ^~~~~~~~~~~~~~~~~~~~
             iommu_fwspec_free
    drivers/gpu/drm/nouveau/nvkm/subdev/ltc/gp10b.c:37:7: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
      spec = dev_iommu_fwspec_get(device->dev);
           ^
    drivers/gpu/drm/nouveau/nvkm/subdev/ltc/gp10b.c:39:17: error: struct iommu_fwspec has no member named ids
       u32 sid = spec->ids[0] & 0xffff;
    
    Seletc IOMMU_API under config DRM_NOUVEAU to fix this.
    Reported-by: default avatarHulk Robot <hulkci@huawei.com>
    Signed-off-by: default avatarChen Zhou <chenzhou10@huawei.com>
    Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
    ee864216
Kconfig 2.54 KB