x86: __always_inline __{rd,wr}msr()
authorPeter Zijlstra <peterz@infradead.org>
Thu, 7 Jan 2021 10:14:25 +0000 (11:14 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 12 Jan 2021 20:10:59 +0000 (21:10 +0100)
commit66a425011c61e71560c234492d204e83cfb73d1d
tree4aceb9ea2d244bf8bef0788658b2ec17dd0757da
parent737495361d4469477ffe45d51e6fc56f44f3cc6a
x86: __always_inline __{rd,wr}msr()

When the compiler choses to not inline the trivial MSR helpers:

  vmlinux.o: warning: objtool: __sev_es_nmi_complete()+0xce: call to __wrmsr.constprop.14() leaves .noinstr.text section

Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Randy Dunlap <rdunlap@infradead.org> # build-tested
Link: https://lore.kernel.org/r/X/bf3gV+BW7kGEsB@hirez.programming.kicks-ass.net
arch/x86/include/asm/msr.h