]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: meson: mark PM functions as __maybe_unused
authorArnd Bergmann <arnd@arndb.de>
Fri, 6 Sep 2019 15:24:29 +0000 (17:24 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 10 Sep 2019 14:14:15 +0000 (16:14 +0200)
commit4df28cdc0388bd8e8260a5971d871aa7f81b0940
treed6ae850c3852bb21a40b342478960d12297cf08f
parent6226c3de68705525652cb74ee9d6d20c325adc16
rtc: meson: mark PM functions as __maybe_unused

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@arndb.de>
Reviewed-by: Kevin Hilman <khilman@baylibre.com>
Link: https://lore.kernel.org/r/20190906152438.1533833-1-arnd@arndb.de
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-meson-vrtc.c