All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Sean Christopherson <seanjc@google.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [sean-jc:x86/sched_in_cleanup 2/3] arch/x86/kvm/svm/svm.c:1546:25: warning: unused variable 'sa'
Date: Sun, 28 Apr 2024 10:28:04 +0800	[thread overview]
Message-ID: <202404281007.s4Kg7sNr-lkp@intel.com> (raw)

tree:   https://github.com/sean-jc/linux x86/sched_in_cleanup
head:   f857e355f9536935b6c96bf389119576043aeb75
commit: 833d3234e0b64c433eb900b0eb62cee8131e5c43 [2/3] KVM: x86: Fold kvm_arch_sched_in() into kvm_arch_vcpu_load()
config: x86_64-randconfig-161-20240428 (https://download.01.org/0day-ci/archive/20240428/202404281007.s4Kg7sNr-lkp@intel.com/config)
compiler: clang version 18.1.4 (https://github.com/llvm/llvm-project e6c3289804a67ea0bb6a86fadbe454dd93b8d855)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240428/202404281007.s4Kg7sNr-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202404281007.s4Kg7sNr-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> arch/x86/kvm/svm/svm.c:1546:25: warning: unused variable 'sa' [-Wunused-variable]
    1546 |         struct vmcb_save_area *sa = page_address(sd->save_area);
         |                                ^~
   1 warning generated.


vim +/sa +1546 arch/x86/kvm/svm/svm.c

  1541	
  1542	static void svm_vcpu_load(struct kvm_vcpu *vcpu, int cpu, bool sched_in)
  1543	{
  1544		struct vcpu_svm *svm = to_svm(vcpu);
  1545		struct svm_cpu_data *sd = per_cpu_ptr(&svm_data, cpu);
> 1546		struct vmcb_save_area *sa = page_address(sd->save_area);
  1547	
  1548		if (sched_in && !kvm_pause_in_guest(vcpu->kvm))
  1549			shrink_ple_window(vcpu);
  1550	
  1551		if (sd->current_vmcb != svm->vmcb) {
  1552			sd->current_vmcb = svm->vmcb;
  1553	
  1554			if (!cpu_feature_enabled(X86_FEATURE_IBPB_ON_VMEXIT))
  1555				indirect_branch_prediction_barrier();
  1556		}
  1557		if (kvm_vcpu_apicv_active(vcpu))
  1558			avic_vcpu_load(vcpu, cpu);
  1559	}
  1560	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2024-04-28  2:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202404281007.s4Kg7sNr-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=seanjc@google.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.