summaryrefslogtreecommitdiffstats
path: root/arch/x86/mm/ident_map.c
diff options
context:
space:
mode:
authorKees Cook2017-05-06 06:51:16 +0200
committerIngo Molnar2017-05-07 10:59:05 +0200
commit60854a12d281e2fa25662fa32ac8022bbff17432 (patch)
tree6a641c085b2a1b4e04a61f1b787b572019c9c610 /arch/x86/mm/ident_map.c
parentx86/mm/kaslr: Use the _ASM_MUL macro for multiplication to work around Clang ... (diff)
downloadkernel-qcow2-linux-60854a12d281e2fa25662fa32ac8022bbff17432.tar.gz
kernel-qcow2-linux-60854a12d281e2fa25662fa32ac8022bbff17432.tar.xz
kernel-qcow2-linux-60854a12d281e2fa25662fa32ac8022bbff17432.zip
x86/boot: Declare error() as noreturn
The compressed boot function error() is used to halt execution, but it wasn't marked with "noreturn". This fixes that in preparation for supporting kernel FORTIFY_SOURCE, which uses the noreturn annotation on panic, and calls error(). GCC would warn about a noreturn function calling a non-noreturn function: arch/x86/boot/compressed/misc.c: In function ‘fortify_panic’: arch/x86/boot/compressed/misc.c:416:1: warning: ‘noreturn’ function does return } ^ Signed-off-by: Kees Cook <keescook@chromium.org> Cc: Daniel Micay <danielmicay@gmail.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: H. Peter Anvin <hpa@zytor.com> Link: http://lkml.kernel.org/r/20170506045116.GA2879@beast Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/mm/ident_map.c')
0 files changed, 0 insertions, 0 deletions