diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-01-20 11:33:37 +0100 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2016-02-01 13:09:38 +0900 |
commit | 010848a73fd87a481f263f7322e733f129ac398b (patch) | |
tree | ea0775e8cc33d4ad396e42463997ca17d7e5738e /kernel/trace/trace_functions_graph.c | |
parent | e0fea7e7b63108b31c043df0d5754bbd666d05c6 (diff) |
drm: exynos: make PM functions as __maybe_unused
The newly added runtime-pm support for exynos-drm encloses the
pm functions in an #ifdef, but not the functions that are called
from them and nowhere else, which produces warnings:
drm/exynos/exynos_drm_dsi.c:733:13: warning: 'exynos_dsi_disable_clock' defined but not used [-Wunused-function]
static void exynos_dsi_disable_clock(struct exynos_dsi *dsi)
^
drm/exynos/exynos_drm_dsi.c:1291:13: warning: 'exynos_dsi_disable_irq' defined but not used [-Wunused-function]
static void exynos_dsi_disable_irq(struct exynos_dsi *dsi)
^
This removes the #ifdef and instead marks the functions as
__maybe_unused, so gcc can silently discard them and all called
functions when CONFIG_PM is disabled.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'kernel/trace/trace_functions_graph.c')
0 files changed, 0 insertions, 0 deletions