]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: avoid unused scale_user_to_hw() warning
authorArnd Bergmann <arnd@arndb.de>
Tue, 28 Apr 2020 21:30:50 +0000 (23:30 +0200)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Tue, 19 May 2020 14:53:58 +0000 (17:53 +0300)
commit519f07b5cf6a90cf206c00d29c19f7718e90729c
tree2aaf98fe4909d4912418ed6766b67ddae7ae8fa0
parent2eb9d7f72a7ee71fd30d7a5d040714ca26fad10d
drm/i915: avoid unused scale_user_to_hw() warning

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: cef09c39c7f4 ("drm/i915: drop a bunch of superfluous inlines")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20200428213106.3139170-1-arnd@arndb.de
(cherry picked from commit 794bdcf71f47b98f6e003190069d5064123067ed)
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/display/intel_panel.c