linux_dsm_epyc7002/drivers/gpu/drm/tegra
Anders Roxell 509869a2fe drm/tegra: vic: Fix implicit function declaration warning
When CONFIG_IOMMU_API isn't set the following warnings pops up:

drivers/gpu/drm/tegra/vic.c: In function ‘vic_boot’:
drivers/gpu/drm/tegra/vic.c:110:31: 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(vic->dev);
                               ^~~~~~~~~~~~~~~~~~~~
                               iommu_fwspec_free
drivers/gpu/drm/tegra/vic.c:110:31: warning: initialization of ‘struct iommu_fwspec *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
drivers/gpu/drm/tegra/vic.c:117:19: error: ‘struct iommu_fwspec’ has no member named ‘num_ids’
   if (spec && spec->num_ids > 0) {
                   ^~
drivers/gpu/drm/tegra/vic.c:118:16: error: ‘struct iommu_fwspec’ has no member named ‘ids’
    value = spec->ids[0] & 0xffff;
                ^~

Rework so that its inside a '#ifdef CONFIG_IOMMU_API' block.

Fixes: f3779cb190 ("drm/tegra: vic: Support stream ID register programming")
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>
2019-03-22 14:08:55 +01:00
..
dc.c drm/tegra: dc: Don't clean up unused display controller 2018-11-29 17:25:32 +01:00
dc.h drm/tegra: dc: Add Tegra194 support 2018-09-26 16:04:39 +02:00
dpaux.c drm/tegra: dpaux: Add Tegra194 support 2018-09-26 16:04:56 +02:00
dpaux.h
drm.c drm/tegra: Restrict IOVA space to DMA mask 2019-02-07 18:29:00 +01:00
drm.h drm/tegra: Changes for v5.1-rc1 2019-02-11 13:32:49 +10:00
dsi.c
dsi.h
falcon.c drm/tegra: falcon: Wait for memory scrubbing to complete 2018-11-29 17:11:49 +01:00
falcon.h
fb.c drm/<drivers>: Don't set FBINFO_(FLAG_)DEFAULT 2019-01-29 10:56:42 +01:00
gem.c
gem.h
gr2d.c
gr2d.h
gr3d.c
gr3d.h
hda.c drm/tegra: hda: Extract HDA format parsing code 2019-01-16 13:10:20 +01:00
hda.h drm/tegra: hda: Extract HDA format parsing code 2019-01-16 13:10:20 +01:00
hdmi.c drm/tegra: Changes for v5.1-rc1 2019-02-11 13:32:49 +10:00
hdmi.h
hub.c drm/tegra: hub: Fix dereference before check 2019-03-22 14:08:54 +01:00
hub.h drm/tegra: hub: Enable all required clocks 2018-11-29 17:25:21 +01:00
Kconfig
Makefile drm/tegra: hda: Extract HDA format parsing code 2019-01-16 13:10:20 +01:00
mipi-phy.c
mipi-phy.h
output.c drm/tegra: Refactor CEC support 2019-01-16 13:09:32 +01:00
plane.c
plane.h
rgb.c
sor.c drm/tegra: Changes for v5.1-rc1 2019-02-11 13:32:49 +10:00
sor.h drm/tegra: sor: Support for audio over HDMI 2018-12-03 16:37:26 +01:00
trace.c
trace.h
vic.c drm/tegra: vic: Fix implicit function declaration warning 2019-03-22 14:08:55 +01:00
vic.h drm/tegra: vic: Support stream ID register programming 2019-02-07 18:29:01 +01:00