[PATCH] drm/i915: avoid unused scale_user_to_hw() warning

Chris Wilson chris at chris-wilson.co.uk
Fri May 15 20:33:57 UTC 2020


Quoting Arnd Bergmann (2020-04-28 22:30:50)
> After the function is no longer marked 'inline', there
> is now a new warning pointing out that the only caller
> is inside of an #ifdef:
> 
> drivers/gpu/drm/i915/display/intel_panel.c:493:12: warning: 'scale_user_to_hw' defined but not used [-Wunused-function]
>   493 | static u32 scale_user_to_hw(struct intel_connector *connector,
>       |            ^~~~~~~~~~~~~~~~
> 
> Move the function itself into that #ifdef as well.
> 
> Fixes: 81b55ef1f47b ("drm/i915: drop a bunch of superfluous inlines")
> Signed-off-by: Arnd Bergmann <arnd at arndb.de>
Reviewed-b: Chris Wilson <chris at chris-wilson.co.uk>
-Chris


More information about the dri-devel mailing list