Re: [PATCH] rtc: x-gene: mark PM functions as __maybe_unused

2017-11-08 Thread Alexandre Belloni
On 08/11/2017 at 13:08:10 +0100, Arnd Bergmann wrote: > 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_e

Re: [PATCH] rtc: x-gene: mark PM functions as __maybe_unused

2017-11-08 Thread Loc Ho
Hi, > 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-fu

[PATCH] rtc: x-gene: mark PM functions as __maybe_unused

2017-11-08 Thread Arnd Bergmann
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 re