diff options
author | Anders Roxell <anders.roxell@linaro.org> | 2019-02-18 12:00:50 +0100 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2019-03-22 14:08:55 +0100 |
commit | 509869a2fec36ecb2b841180915995f41d5a0219 (patch) | |
tree | a6d191d62721141b63eb9c3b830d731a21d01203 /drivers/pci/hotplug/pnv_php.c | |
parent | 7cf77b273a8fc51e7de622fa6691abd4436a9a6b (diff) | |
download | lwn-509869a2fec36ecb2b841180915995f41d5a0219.tar.gz lwn-509869a2fec36ecb2b841180915995f41d5a0219.zip |
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: f3779cb190a5 ("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>
Diffstat (limited to 'drivers/pci/hotplug/pnv_php.c')
0 files changed, 0 insertions, 0 deletions