diff options
author | Arnd Bergmann <arnd@arndb.de> | 2017-04-19 19:52:43 +0200 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2017-04-22 18:01:15 +0200 |
commit | 5d05e81516cfe7606ee0cd8278fe225314dccfbe (patch) | |
tree | c371ff6cfe873e431cbe6b3499e06ed902ca7223 /CREDITS | |
parent | rtc: hid-sensor-time: remove some dead code (diff) | |
download | linux-5d05e81516cfe7606ee0cd8278fe225314dccfbe.tar.xz linux-5d05e81516cfe7606ee0cd8278fe225314dccfbe.zip |
rtc: sh: mark PM functions as unused
The sh_rtc_set_irq_wake() function is only called from the suspend/resume handlers
that may be hidden, causing a harmless warning:
drivers/rtc/rtc-sh.c:724:13: error: 'sh_rtc_set_irq_wake' defined but not used [-Werror=unused-function]
static void sh_rtc_set_irq_wake(struct device *dev, int enabled)
The most reliable way to avoid the warning is to remove the existing #ifdef
and mark the two functions as __maybe_unused so the compiler can silently
drop all three when there is no reference.
Fixes: dab5aec64bf5 ("rtc: sh: add support for rza series")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'CREDITS')
0 files changed, 0 insertions, 0 deletions