Re: [PATCH] alarmtimer: fix unexpected rtc interrupt when system resume

From: kbuild test robot
Date: Thu Nov 05 2015 - 00:02:16 EST


Hi zhuo-hao,

[auto build test ERROR on: tip/timers/core]
[also build test ERROR on: v4.3 next-20151104]

url: https://github.com/0day-ci/linux/commits/zhuo-hao-lee-intel-com/alarmtimer-fix-unexpected-rtc-interrupt-when-system-resume/20151105-124811
config: i386-randconfig-x009-11010709 (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=i386

All error/warnings (new ones prefixed by >>):

kernel/time/alarmtimer.c: In function 'alarmtimer_resume':
>> kernel/time/alarmtimer.c:280:9: error: void value not ignored as it ought to be
return rtc ? rtc_timer_cancel(rtc, &rtctimer) : 0;
^
>> kernel/time/alarmtimer.c:281:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^

vim +280 kernel/time/alarmtimer.c

274
275 static int alarmtimer_resume(struct device *dev)
276 {
277 struct rtc_device *rtc;
278
279 rtc = alarmtimer_get_rtcdev();
> 280 return rtc ? rtc_timer_cancel(rtc, &rtctimer) : 0;
> 281 }
282
283 #else
284 static int alarmtimer_suspend(struct device *dev)

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: Binary data