Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
From: "Edgecombe, Rick P" <rick.p.edgecombe@intel.com>
To: "pbonzini@redhat.com" <pbonzini@redhat.com>,
	"Huang, Kai" <kai.huang@intel.com>, lkp <lkp@intel.com>
Cc: "kvm@vger.kernel.org" <kvm@vger.kernel.org>,
	"llvm@lists.linux.dev" <llvm@lists.linux.dev>,
	"Chen, Farrah" <farrah.chen@intel.com>,
	"oe-kbuild-all@lists.linux.dev" <oe-kbuild-all@lists.linux.dev>
Subject: Re: [kvm:kvm-coco-queue 39/125] WARNING: modpost: vmlinux: section mismatch in reference: vt_init+0x2f (section: .init.text) -> vmx_exit (section: .exit.text)
Date: Thu, 23 Jan 2025 22:54:15 +0000	[thread overview]
Message-ID: <9a9fbef8ce874f15a5c8fdd24f2958a4f76c6080.camel@intel.com> (raw)
In-Reply-To: <BL1PR11MB59780AA56D67068C906A40BAF7E02@BL1PR11MB5978.namprd11.prod.outlook.com>

On Thu, 2025-01-23 at 08:35 +0000, Huang, Kai wrote:
> 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.

Yea. The __exit was just added recently:
https://lore.kernel.org/kvm/20250102154050.2403-1-costas.argyris@amd.com/

> 
> Perhaps we need to remove the __exit annotation from vmx_exit().
> 



  reply	other threads:[~2025-01-23 22:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-23  4:54 [kvm:kvm-coco-queue 39/125] WARNING: modpost: vmlinux: section mismatch in reference: vt_init+0x2f (section: .init.text) -> vmx_exit (section: .exit.text) kernel test robot
2025-01-23  8:35 ` Huang, Kai
2025-01-23 22:54   ` Edgecombe, Rick P [this message]
2025-02-06 21:30     ` Huang, Kai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9a9fbef8ce874f15a5c8fdd24f2958a4f76c6080.camel@intel.com \
    --to=rick.p.edgecombe@intel.com \
    --cc=farrah.chen@intel.com \
    --cc=kai.huang@intel.com \
    --cc=kvm@vger.kernel.org \
    --cc=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=pbonzini@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox