[PATCH] rtc: meson: mark PM functions as __maybe_unused

Kevin Hilman khilman at baylibre.com
Fri Sep 6 09:56:11 PDT 2019

Arnd Bergmann <arnd at arndb.de> writes:

> The meson_vrtc_set_wakeup_time() function is only used by
> the PM functions and causes a warning when they are disabled:
> drivers/rtc/rtc-meson-vrtc.c:32:13: error: unused function 'meson_vrtc_set_wakeup_time' [-Werror,-Wunused-function]
> Remove the #ifdef around the callers and add a __maybe_unused
> annotation as a more reliable way to avoid these warnings.
> Signed-off-by: Arnd Bergmann <arnd at arndb.de>

Reviewed-by: Kevin Hilman <khilman at baylibre.com>

More information about the linux-amlogic mailing list