[Intel-gfx] [PATCH] drm/i915: Silence a sparse warning

Daniel Vetter daniel at ffwll.ch
Tue Apr 7 01:54:46 PDT 2015


On Thu, Apr 02, 2015 at 06:28:07PM +0300, ville.syrjala at linux.intel.com wrote:
> From: Ville Syrjälä <ville.syrjala at linux.intel.com>
> 
> ../drivers/gpu/drm/i915/intel_pm.c:3185:45: warning: Initializer entry defined twice
> ../drivers/gpu/drm/i915/intel_pm.c:3185:52:   also defined here
> 
> Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>

Queued for -next, thanks for the patch.
-Daniel

> ---
>  drivers/gpu/drm/i915/intel_pm.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
> index 8775509..b31b204 100644
> --- a/drivers/gpu/drm/i915/intel_pm.c
> +++ b/drivers/gpu/drm/i915/intel_pm.c
> @@ -3182,7 +3182,7 @@ static void skl_flush_wm_values(struct drm_i915_private *dev_priv,
>  {
>  	struct drm_device *dev = dev_priv->dev;
>  	struct skl_ddb_allocation *cur_ddb, *new_ddb;
> -	bool reallocated[I915_MAX_PIPES] = {false, false, false};
> +	bool reallocated[I915_MAX_PIPES] = {};
>  	struct intel_crtc *crtc;
>  	enum pipe pipe;
>  
> -- 
> 2.0.5
> 
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch


More information about the Intel-gfx mailing list