dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/vmwgfx: fix warning if config intel iommu is off.
@ 2013-11-08  6:13 Dave Airlie
  2013-12-03 20:04 ` Thomas Hellstrom
  0 siblings, 1 reply; 2+ messages in thread
From: Dave Airlie @ 2013-11-08  6:13 UTC (permalink / raw)
  To: dri-devel

From: Dave Airlie <airlied@redhat.com>

Though I'm not really happy with how ugly this code is now.

Signed-off-by: Dave Airlie <airlied@redhat.com>
---
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
index 0b5c781..ba1f8f1 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
+++ b/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;
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] drm/vmwgfx: fix warning if config intel iommu is off.
  2013-11-08  6:13 [PATCH] drm/vmwgfx: fix warning if config intel iommu is off Dave Airlie
@ 2013-12-03 20:04 ` Thomas Hellstrom
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Hellstrom @ 2013-12-03 20:04 UTC (permalink / raw)
  To: Dave Airlie; +Cc: dri-devel

Hi, Dave, I'm sorry I missed this one.

(but the warning is shut up with another patch).

I agree this code is ugly, (and has become even uglier).
I'll put on my todo list to find a way to do this more cleanly...

/Thomas


On 11/08/2013 07:13 AM, Dave Airlie wrote:
> From: Dave Airlie <airlied@redhat.com>
>
> Though I'm not really happy with how ugly this code is now.
>
> Signed-off-by: Dave Airlie <airlied@redhat.com>
> ---
>   drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 2 ++
>   1 file changed, 2 insertions(+)
>
> diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
> index 0b5c781..ba1f8f1 100644
> --- a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
> +++ b/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;

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-12-03 20:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-08  6:13 [PATCH] drm/vmwgfx: fix warning if config intel iommu is off Dave Airlie
2013-12-03 20:04 ` Thomas Hellstrom

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox