x86/mce: Mark mce_end() noinstr
authorBorislav Petkov <bp@suse.de>
Mon, 1 Nov 2021 15:43:33 +0000 (16:43 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 09:54:16 +0000 (10:54 +0100)
commit1ad3e60f1fec185d11196028136e60e8e3009b37
treeece871ef01cfbec4b3cc7a8712a2a52d619db929
parentf21ca973b43fb23416bd89dc267aa51249c20afb
x86/mce: Mark mce_end() noinstr

[ Upstream commit b4813539d37fa31fed62cdfab7bd2dd8929c5b2e ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/x86/kernel/cpu/mce/core.c