From: Josh Poimboeuf <jpoim...@redhat.com> commit 684fb246578b9e81fc7b4ca5c71eae22edb650b2 upstream.
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 <m...@chromium.org> Signed-off-by: Josh Poimboeuf <jpoim...@redhat.com> Signed-off-by: Thomas Gleixner <t...@linutronix.de> Tested-by: Matthias Kaehlcke <m...@chromium.org> Reviewed-by: Matthias Kaehlcke <m...@chromium.org> Link: https://lkml.kernel.org/r/791712792aa4431bdd55bf1beb33a169ddf3b4a2.1529423255.git.jpoim...@redhat.com Signed-off-by: Greg Kroah-Hartman <gre...@linuxfoundation.org> --- tools/objtool/check.c | 1 + 1 file changed, 1 insertion(+) --- a/tools/objtool/check.c +++ b/tools/objtool/check.c @@ -165,6 +165,7 @@ static int __dead_end_function(struct ob "__reiserfs_panic", "lbug_with_loc", "fortify_panic", + "machine_real_restart", }; if (func->bind == STB_WEAK)