Skip to content

Commit 8c72de3

Browse files
suryasaimadhugregkh
authored andcommitted
x86/mce: Mark mce_read_aux() noinstr
[ Upstream commit db6c996 ] Fixes vmlinux.o: warning: objtool: do_machine_check()+0x681: call to mce_read_aux() leaves .noinstr.text section Signed-off-by: Borislav Petkov <bp@suse.de> Link: https://lore.kernel.org/r/20211208111343.8130-10-bp@alien8.de Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 1ad3e60 commit 8c72de3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/x86/kernel/cpu/mce/core.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ static struct notifier_block mce_default_nb = {
691691
/*
692692
* Read ADDR and MISC registers.
693693
*/
694-
static void mce_read_aux(struct mce *m, int i)
694+
static noinstr void mce_read_aux(struct mce *m, int i)
695695
{
696696
if (m->status & MCI_STATUS_MISCV)
697697
m->misc = mce_rdmsrl(msr_ops.misc(i));

0 commit comments

Comments
 (0)