• Arnd Bergmann's avatar
    Subject: [PATCH, RESEND] drm: exynos: avoid unused function warning · 4158dbe1
    Arnd Bergmann authored
    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: default avatarArnd Bergmann <arnd@arndb.de>
    Signed-off-by: default avatarInki Dae <inki.dae@samsung.com>
    4158dbe1
exynos_drm_gsc.c 44.7 KB