瀏覽代碼

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: Dave Airlie <airlied@redhat.com>
Dave Airlie 11 年之前
父節點
當前提交
21136946c4
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      drivers/gpu/drm/vmwgfx/vmwgfx_drv.c

+ 2 - 0
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c

@@ -482,7 +482,9 @@ static int vmw_dma_select_mode(struct vmw_private *dev_priv)
 		dev_priv->map_mode = vmw_dma_map_populate;
 #endif
 
+#ifdef CONFIG_INTEL_IOMMU
 out_fixup:
+#endif
 	if (dev_priv->map_mode == vmw_dma_map_populate &&
 	    vmw_restrict_iommu)
 		dev_priv->map_mode = vmw_dma_map_bind;