On Tue, Jun 19, 2018 at 10:47:50AM -0500, Josh Poimboeuf wrote:
> machine_real_restart() is annotated as '__noreturn", so add it to the
> objtool noreturn list.  This fixes the following warning with clang and
> CONFIG_CC_OPTIMIZE_FOR_SIZE=y:
> 
>   arch/x86/kernel/reboot.o: warning: objtool: 
> native_machine_emergency_restart() falls through to next function 
> machine_power_off()
> 
> Reported-by: Matthias Kaehlcke <[email protected]>
> Signed-off-by: Josh Poimboeuf <[email protected]>

Tested-by: Matthias Kaehlcke <[email protected]>
Reviewed-by: Matthias Kaehlcke <[email protected]>

Thanks!

Reply via email to