Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

x86/paravirt: Move pv_native_*() prototypes to paravirt.c

The only reason the pv_native_*() prototypes are needed is the complete
definition of those functions via an asm() statement, which makes it
impossible to have those functions as static ones.

Move the prototypes from paravirt_types.h into paravirt.c, which is the
only source referencing the functions.

Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://patch.msgid.link/20260105110520.21356-15-jgross@suse.com

authored by

Juergen Gross and committed by
Borislav Petkov (AMD)
574b3eb8 f01b4f4a

+5 -7
-7
arch/x86/include/asm/paravirt_types.h
··· 480 480 __PVOP_VCALL(op, PVOP_CALL_ARG1(arg1), PVOP_CALL_ARG2(arg2), \ 481 481 PVOP_CALL_ARG3(arg3), PVOP_CALL_ARG4(arg4)) 482 482 483 - #ifdef CONFIG_PARAVIRT_XXL 484 - unsigned long pv_native_save_fl(void); 485 - void pv_native_irq_disable(void); 486 - void pv_native_irq_enable(void); 487 - unsigned long pv_native_read_cr2(void); 488 - #endif 489 - 490 483 #endif /* __ASSEMBLER__ */ 491 484 492 485 #define ALT_NOT_XEN ALT_NOT(X86_FEATURE_XENPV)
+5
arch/x86/kernel/paravirt.c
··· 45 45 } 46 46 47 47 #ifdef CONFIG_PARAVIRT_XXL 48 + unsigned long pv_native_save_fl(void); 49 + void pv_native_irq_disable(void); 50 + void pv_native_irq_enable(void); 51 + unsigned long pv_native_read_cr2(void); 52 + 48 53 DEFINE_ASM_FUNC(_paravirt_ident_64, "mov %rdi, %rax", .text); 49 54 DEFINE_ASM_FUNC(pv_native_save_fl, "pushf; pop %rax", .noinstr.text); 50 55 DEFINE_ASM_FUNC(pv_native_irq_disable, "cli", .noinstr.text);