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 10:04:40 +0000 (11:04 +0100)
commitb26d3a8f826df29c01f27bbb05932fc899c8e271
tree6c5a119e30f79bfaa7c659e9a7cb6e4f195ec9ab
parentf166c0b3ac1cd033b419372acc6f12c612351de6
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