Skip to content

Commit db6c996

Browse files
committed
x86/mce: Mark mce_read_aux() noinstr
Fixes vmlinux.o: warning: objtool: do_machine_check()+0x681: call to mce_read_aux() leaves .noinstr.text section Signed-off-by: Borislav Petkov <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent b481353 commit db6c996

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ static struct notifier_block mce_default_nb = {
648648
/*
649649
* Read ADDR and MISC registers.
650650
*/
651-
static void mce_read_aux(struct mce *m, int i)
651+
static noinstr void mce_read_aux(struct mce *m, int i)
652652
{
653653
if (m->status & MCI_STATUS_MISCV)
654654
m->misc = mce_rdmsrl(mca_msr_reg(i, MCA_MISC));

0 commit comments

Comments
 (0)