> tree: https://git.kernel.org/pub/scm/virt/kvm/kvm.git kvm-coco-queue > head: 46bf7963a06a56a6c411329d06642836450d19a7 > commit: 45c7c4a6fbf00d0ca3f033f30c39e6c12c517381 [39/125] KVM: VMX: > Refactor VMX module init/exit functions > config: i386-buildonly-randconfig-002-20250123 > (https://download.01.org/0day-ci/archive/20250123/202501231202.viiY8Abl- > lkp@xxxxxxxxx/config) > compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project > ab51eccf88f5321e7c60591c5546b254b6afab99) > reproduce (this is a W=1 build): (https://download.01.org/0day- > ci/archive/20250123/202501231202.viiY8Abl-lkp@xxxxxxxxx/reproduce) > > If you fix the issue in a separate patch/commit (i.e. not just a new version of > the same patch/commit), kindly add following tags > | Reported-by: kernel test robot <lkp@xxxxxxxxx> > | Closes: > | https://lore.kernel.org/oe-kbuild-all/202501231202.viiY8Abl-lkp@intel. > | com/ > > All warnings (new ones prefixed by >>, old ones prefixed by <<): > > >> WARNING: modpost: vmlinux: section mismatch in reference: > >> vt_init+0x2f (section: .init.text) -> vmx_exit (section: .exit.text) > I checked the code, I think it is because vt_init() calls vmx_exit() in the error path when kvm_init() fails. vt_init() is annotated with __init and vmx_exit() is annotated with __exit. Perhaps we need to remove the __exit annotation from vmx_exit(). However I will be on airplane soon so cannot actually work on the code to verify. Will do it once have time.