Skip to content

Commit b777d40

Browse files
committed
objtool: Add vpanic() to the noreturn list
JIRA: https://issues.redhat.com/browse/RHEL-114921 commit 90a01bd Author: Nam Cao <namcao@linutronix.de> Date: Fri Jul 11 13:20:42 2025 +0200 objtool: Add vpanic() to the noreturn list vpanic() does not return. However, objtool doesn't know this and gets confused: kernel/trace/rv/reactor_panic.o: warning: objtool: rv_panic_reaction(): unexpected end of section .text Add vpanic() to the list of noreturn functions. Cc: John Ogness <john.ogness@linutronix.de> Cc: Masami Hiramatsu <mhiramat@kernel.org> Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Cc: Gabriele Monaco <gmonaco@redhat.com> Cc: Josh Poimboeuf <jpoimboe@kernel.org> Cc: Petr Mladek <pmladek@suse.com> Link: https://lore.kernel.org/073f826ebec18b2bb59cba88606cd865d8039fd2.1752232374.git.namcao@linutronix.de Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202507110826.2ekbVdWZ-lkp@intel.com/ Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Signed-off-by: Nam Cao <namcao@linutronix.de> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org> Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com>
1 parent 31d96fc commit b777d40

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/objtool/noreturns.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ NORETURN(mpt_halt_firmware)
3636
NORETURN(mwait_play_dead)
3737
NORETURN(nmi_panic_self_stop)
3838
NORETURN(panic)
39+
NORETURN(vpanic)
3940
NORETURN(panic_smp_self_stop)
4041
NORETURN(rest_init)
4142
NORETURN(rewind_stack_and_make_dead)

0 commit comments

Comments
 (0)