https://github.com/torvalds/linux
Revision 684fb246578b9e81fc7b4ca5c71eae22edb650b2 authored by Josh Poimboeuf on 19 June 2018, 15:47:50 UTC, committed by Thomas Gleixner on 20 June 2018, 00:10:37 UTC
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

1 parent 9ffc59d
History
Tip revision: 684fb246578b9e81fc7b4ca5c71eae22edb650b2 authored by Josh Poimboeuf on 19 June 2018, 15:47:50 UTC
objtool: Add machine_real_restart() to the noreturn list
Tip revision: 684fb24
File Mode Size
.gitignore -rw-r--r-- 151 bytes
Kconfig -rw-r--r-- 7.8 KB
Makefile -rw-r--r-- 2.0 KB
gen_init_cpio.c -rw-r--r-- 12.8 KB
initramfs_data.S -rw-r--r-- 1.3 KB

back to top