summary refs log tree commit diff
path: root/mm/vmstat.c
diff options
context:
space:
mode:
authorBorislav Petkov <bp@suse.de>2022-08-24 17:13:26 +0200
committerBorislav Petkov <bp@suse.de>2022-08-25 15:54:03 +0200
commitc93c296fff6b369a7115916145047c8a3db6e27f (patch)
treeffaf8154c47ead2d9ac672666f59418cc37c8a06 /mm/vmstat.c
parentcdaa0a407f1acd3a44861e3aea6e3c7349e668f1 (diff)
downloadlinux-c93c296fff6b369a7115916145047c8a3db6e27f.tar.gz
x86/sev: Mark snp_abort() noreturn
Mark both the function prototype and definition as noreturn in order to
prevent the compiler from doing transformations which confuse objtool
like so:

  vmlinux.o: warning: objtool: sme_enable+0x71: unreachable instruction

This triggers with gcc-12.

Add it and sev_es_terminate() to the objtool noreturn tracking array
too. Sort it while at it.

Suggested-by: Michael Matz <matz@suse.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20220824152420.20547-1-bp@alien8.de
Diffstat (limited to 'mm/vmstat.c')
0 files changed, 0 insertions, 0 deletions