]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitaccfb5d82cbf616350f6b955796f0cd83f733175
tree4aceb9ea2d244bf8bef0788658b2ec17dd0757da
parent187a2e543c30b5690ba2bc17fe0ac344fdd36ab8
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