diff options
author | Arnd Bergmann <arnd@arndb.de> | 2017-11-08 13:08:10 +0100 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2017-11-09 01:25:47 +0100 |
commit | 573e2bf05421d0dc69dc3c604f286b3473d2f2cd (patch) | |
tree | 8da6e114902659d25c6da405f41c2275080f4291 /drivers/rtc/rtc-mxc.c | |
parent | d0bcd82b13794c4bc89876e9383000fc1cb069d2 (diff) | |
download | linux-573e2bf05421d0dc69dc3c604f286b3473d2f2cd.tar.bz2 |
rtc: xgene: mark PM functions as __maybe_unused
The new xgene_rtc_alarm_irq_enabled() function is only accessed
from PM code, which is inside of an #ifdef; this causes a harmless
build warning when CONFIG_PM is disabled:
drivers/rtc/rtc-xgene.c:108:12: error: 'xgene_rtc_alarm_irq_enabled' defined but not used [-Werror=unused-function]
Just remove the #ifdef and use __maybe_unused annotations instead,
to make the code more robust here.
Fixes: d0bcd82b1379 ("rtc: xgene: Fix suspend/resume")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Loc Ho <lho@apm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'drivers/rtc/rtc-mxc.c')
0 files changed, 0 insertions, 0 deletions