rtc: ds1685: actually spin forever in poweroff path, part 2
PATCH 1/1 rtc: ds1685: actually spin forever in poweroff path, part 2
objtool reports the following warning:
drivers/rtc/rtc-ds1685.o: warning: objtool: ds1685_rtc_poweroff() falls through to next function ds1685_rtc_work_queue()
Similar to commit 361c6ed6b153 ("rtc: ds1685: actually spin forever in poweroff error path"), there's another unreachable() annotation which is actually reachable, which we missed the first time.
Actually spin forever to be consistent with the comment and to make the unreachable() annotation guaranteed to be unreachable.
--- drivers/rtc/rtc-ds1685.c | 1 + 1 file changed, 1 insertion(+)
drivers/rtc/rtc-ds1685.c +1 -0
@@ -2213,6 +2213,7 @@ ds1685_rtc_poweroff(struct platform_device *pdev) (ctrl4a | RTC_CTRL_4A_PAB));/* Spin ... we do not switch back to bank0. */ +while (1 );unreachable (); } }
Signature · 12 lines
2.4.11 -- -- You received this message because you are subscribed to "rtc-linux". Membership options at http://groups.google.com/group/rtc-linux . Please read http://groups.google.com/group/rtc-linux/web/checklist before submitting a driver. --- You received this message because you are subscribed to the Google Groups "rtc-linux" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
Alexandre Belloni
AppliedQuoted 8 lines · Josh Poimboeuf
objtool reports the following warning:
drivers/rtc/rtc-ds1685.o: warning: objtool:ds1685_rtc_poweroff()falls through to next functionds1685_rtc_work_queue()Similar to commit
361c6ed6b153("rtc: ds1685: actually spin forever in poweroff error path"), there's anotherunreachable()annotation which is actually reachable, which we missed the first time.
Quoted 5 lines
Actually spin forever to be consistent with the comment and to make the
unreachable()annotation guaranteed to be unreachable.Reported-by kbuild test robot <[email protected]>Signed-off-by Josh Poimboeuf <[email protected]>
Applied, thanks.
Signature · 14 lines
Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- -- You received this message because you are subscribed to "rtc-linux". Membership options at http://groups.google.com/group/rtc-linux . Please read http://groups.google.com/group/rtc-linux/web/checklist before submitting a driver. --- You received this message because you are subscribed to the Google Groups "rtc-linux" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.