[Intel-gfx] [PATCH] drm/i915: Drop const qualifiers from params in wait_for_register()

Chris Wilson chris at chris-wilson.co.uk
Mon Apr 10 09:43:33 UTC 2017


On Mon, Apr 10, 2017 at 09:38:17AM +0000, Michal Wajdeczko wrote:
> These params are passed by value, const qualifiers are ignored any way.

They are not completely ignored, it just means you are not allowed to
alter the value inside the function. But it doesn't improve code
generation.

> While around, unify timeout_ms type from long to int.
> 
> Signed-off-by: Michal Wajdeczko <michal.wajdeczko at intel.com>
> Suggested-by: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>
> Cc: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>
> Cc: Chris Wilson <chris at chris-wilson.co.uk>
Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the Intel-gfx mailing list