]> www.infradead.org Git - users/dwmw2/linux.git/commit
objtool: Add machine_real_restart() to the noreturn list
authorJosh Poimboeuf <jpoimboe@redhat.com>
Tue, 19 Jun 2018 15:47:50 +0000 (10:47 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Aug 2019 15:53:33 +0000 (17:53 +0200)
commit779e18aa822348c98fca14e1ff29c0f0f3a4acd4
tree09feaee3e00fa6fa19d6c796ffb02bd7c130bc37
parentbad4cb582efa92465227bca4459e898942de877a
objtool: Add machine_real_restart() to the noreturn list

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 <mka@chromium.org>
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Matthias Kaehlcke <mka@chromium.org>
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Link: https://lkml.kernel.org/r/791712792aa4431bdd55bf1beb33a169ddf3b4a2.1529423255.git.jpoimboe@redhat.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/objtool/check.c