On Thu, Dec 17, 2020 at 09:12:57PM +0800, kernel test robot wrote: > ld: arch/x86/kernel/alternative.o: in function `paravirt_set_cap': > >> arch/x86/kernel/alternative.c:605: undefined reference to > >> `pv_is_native_spin_unlock' > >> ld: arch/x86/kernel/alternative.c:608: undefined reference to > >> `pv_is_native_vcpu_is_preempted'
Looks like alternative.c needs #include <asm/paravirt.h>. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette