x86/mce: Mark mce_end() noinstr
authorBorislav Petkov <bp@suse.de>
Mon, 1 Nov 2021 15:43:33 +0000 (16:43 +0100)
committerBorislav Petkov <bp@suse.de>
Mon, 13 Dec 2021 13:13:12 +0000 (14:13 +0100)
commitb4813539d37fa31fed62cdfab7bd2dd8929c5b2e
treedd3d0732f092c0dcc52d2ec2a26b4d2a76222ff4
parent3c7ce80a818fa7950be123cac80cd078e5ac1013
x86/mce: Mark mce_end() noinstr

It is called by the #MC handler which is noinstr.

Fixes

  vmlinux.o: warning: objtool: do_machine_check()+0xbd6: call to memset() leaves .noinstr.text section

Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20211208111343.8130-9-bp@alien8.de
arch/x86/kernel/cpu/mce/core.c