Skip to content

Commit ace1a98

Browse files
committed
x86/mm: Force-inline __phys_addr_nodebug()
Fix: vmlinux.o: warning: objtool: __sev_es_nmi_complete()+0x8b: call to __phys_addr_nodebug() leaves .noinstr.text section Signed-off-by: Borislav Petkov <bp@suse.de> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lore.kernel.org/r/20220324183607.31717-4-bp@alien8.de
1 parent 6b91ec4 commit ace1a98

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/x86/include/asm/page_64.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ extern unsigned long page_offset_base;
1616
extern unsigned long vmalloc_base;
1717
extern unsigned long vmemmap_base;
1818

19-
static inline unsigned long __phys_addr_nodebug(unsigned long x)
19+
static __always_inline unsigned long __phys_addr_nodebug(unsigned long x)
2020
{
2121
unsigned long y = x - __START_KERNEL_map;
2222

0 commit comments

Comments
 (0)