Commit 21136946 authored by Dave Airlie's avatar Dave Airlie

drm/vmwgfx: fix warning if config intel iommu is off.

Though I'm not really happy with how ugly this code is now.
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 4c60fac1
...@@ -482,7 +482,9 @@ static int vmw_dma_select_mode(struct vmw_private *dev_priv) ...@@ -482,7 +482,9 @@ static int vmw_dma_select_mode(struct vmw_private *dev_priv)
dev_priv->map_mode = vmw_dma_map_populate; dev_priv->map_mode = vmw_dma_map_populate;
#endif #endif
#ifdef CONFIG_INTEL_IOMMU
out_fixup: out_fixup:
#endif
if (dev_priv->map_mode == vmw_dma_map_populate && if (dev_priv->map_mode == vmw_dma_map_populate &&
vmw_restrict_iommu) vmw_restrict_iommu)
dev_priv->map_mode = vmw_dma_map_bind; dev_priv->map_mode = vmw_dma_map_bind;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment