]> git.baikalelectronics.ru Git - kernel.git/commit
Subject: [PATCH, RESEND] drm: exynos: avoid unused function warning
authorArnd Bergmann <arnd@arndb.de>
Sun, 18 Sep 2016 13:51:38 +0000 (22:51 +0900)
committerInki Dae <inki.dae@samsung.com>
Mon, 19 Sep 2016 01:07:26 +0000 (10:07 +0900)
commit68d8752cbe932d826b856ecfbf7b70d0bd0aa970
tree202dd3df10dd8d66ef128b2eb0dcf12591709fa7
parent0f1ebbf98d450ab94cada329e95e9272a7c2f6f2
Subject: [PATCH, RESEND] drm: exynos: avoid unused function warning

When CONFIG_PM is not set, we get a warning about an unused function:

drivers/gpu/drm/exynos/exynos_drm_gsc.c:1219:12: error: 'gsc_clk_ctrl' defined but not used [-Werror=unused-function]
 static int gsc_clk_ctrl(struct gsc_context *ctx, bool enable)
            ^~~~~~~~~~~~

This removes the two #ifdef checks in this file and instead marks the
functions as __maybe_unused, which is a more reliable way of doing the
same, allowing better build coverage and avoiding the warning above.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_gsc.c