On 27/07/2018 17:10:15+0200, Anders Roxell wrote: > When building rtc-sh, rtc_dev isn't used in function __sh_rtc_periodic. > drivers/rtc/rtc-sh.c: In function ‘__sh_rtc_periodic’: > drivers/rtc/rtc-sh.c:146:21: warning: unused variable ‘rtc_dev’ [-Wunused-variable] > struct rtc_device *rtc_dev = rtc->rtc_dev; > ^~~~~~~ > Remove the declaration of rtc_dev to dispose the warning. > > Fixes: ec623ff014c4 ("rtc: sh: remove dead code") > Signed-off-by: Anders Roxell <anders.roxell@xxxxxxxxxx> > --- > drivers/rtc/rtc-sh.c | 1 - > 1 file changed, 1 deletion(-) > Applied, thanks. It is weird that kbuild didn't complain about it though. -- Alexandre Belloni, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com