]> git.baikalelectronics.ru Git - kernel.git/commit
x86,objtool: Mark cpu_startup_entry() __noreturn
authorPeter Zijlstra <peterz@infradead.org>
Fri, 8 Apr 2022 09:45:55 +0000 (11:45 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 19 Apr 2022 19:58:48 +0000 (21:58 +0200)
commit80779e9efe9e298cabc2934c9f1a249cc31f00cd
tree616f5e578b5243ac96e4597f345d93bd81446e65
parentbca6f1c304df90bb52a617cbf76843431fd92882
x86,objtool: Mark cpu_startup_entry() __noreturn

GCC-8 isn't clever enough to figure out that cpu_start_entry() is a
noreturn while objtool is. This results in code after the call in
start_secondary(). Give GCC a hand so that they all agree on things.

  vmlinux.o: warning: objtool: start_secondary()+0x10e: unreachable

Reported-by: Rick Edgecombe <rick.p.edgecombe@intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
Link: https://lore.kernel.org/r/20220408094718.383658532@infradead.org
include/linux/cpu.h
tools/objtool/check.c