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 <[email protected]> Acked-by: Peter Zijlstra (Intel) <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 6b91ec4 commit ace1a98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)