From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com, Dan Carpenter <error27@gmail.com>
Subject: arch/loongarch/kvm/../../../virt/kvm/kvm_main.c:327 kvm_make_all_cpus_request() warn: iterator 'i' not incremented
Date: Thu, 3 Oct 2024 22:58:09 +0800 [thread overview]
Message-ID: <202410032223.FPOUWbSX-lkp@intel.com> (raw)
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: Venkatesh Srinivas <venkateshs@chromium.org>
CC: Sean Christopherson <seanjc@google.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 7ec462100ef9142344ddbf86f2c3008b97acddbe
commit: 82e9c84d8712e8d29278a37aaa9aa767d50a16da KVM: Remove kvm_make_all_cpus_request_except()
date: 5 months ago
:::::: branch date: 15 hours ago
:::::: commit date: 5 months ago
config: loongarch-randconfig-r071-20241003 (https://download.01.org/0day-ci/archive/20241003/202410032223.FPOUWbSX-lkp@intel.com/config)
compiler: loongarch64-linux-gcc (GCC) 14.1.0
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>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202410032223.FPOUWbSX-lkp@intel.com/
New smatch warnings:
arch/loongarch/kvm/../../../virt/kvm/kvm_main.c:327 kvm_make_all_cpus_request() warn: iterator 'i' not incremented
Old smatch warnings:
arch/loongarch/kvm/../../../virt/kvm/kvm_main.c:518 kvm_destroy_vcpus() warn: iterator 'i' not incremented
arch/loongarch/kvm/../../../virt/kvm/kvm_main.c:1730 kvm_commit_memory_region() error: we previously assumed 'old' could be null (see line 1723)
arch/loongarch/kvm/../../../virt/kvm/kvm_main.c:1732 kvm_commit_memory_region() error: we previously assumed 'new' could be null (see line 1724)
arch/loongarch/include/asm/atomic.h:133 arch_atomic_fetch_add_unless() warn: inconsistent indenting
include/linux/kvm_host.h:979 kvm_get_vcpu_by_id() warn: iterator 'i' not incremented
arch/loongarch/kvm/../../../virt/kvm/kvm_main.c:4947 kvm_vm_ioctl_reset_dirty_pages() warn: iterator 'i' not incremented
arch/loongarch/kvm/../../../virt/kvm/kvm_main.c:6076 kvm_get_stat_per_vcpu() warn: iterator 'i' not incremented
arch/loongarch/kvm/../../../virt/kvm/kvm_main.c:6087 kvm_clear_stat_per_vcpu() warn: iterator 'i' not incremented
vim +/i +327 arch/loongarch/kvm/../../../virt/kvm/kvm_main.c
7053df4edb3ae3 virt/kvm/kvm_main.c Vitaly Kuznetsov 2018-05-16 313
82e9c84d8712e8 virt/kvm/kvm_main.c Venkatesh Srinivas 2024-04-04 314 bool kvm_make_all_cpus_request(struct kvm *kvm, unsigned int req)
7053df4edb3ae3 virt/kvm/kvm_main.c Vitaly Kuznetsov 2018-05-16 315 {
ae0946cd360175 virt/kvm/kvm_main.c Vitaly Kuznetsov 2021-09-03 316 struct kvm_vcpu *vcpu;
baff59ccdc657d virt/kvm/kvm_main.c Vitaly Kuznetsov 2021-09-03 317 struct cpumask *cpus;
46808a4cb89708 virt/kvm/kvm_main.c Marc Zyngier 2021-11-16 318 unsigned long i;
7053df4edb3ae3 virt/kvm/kvm_main.c Vitaly Kuznetsov 2018-05-16 319 bool called;
46808a4cb89708 virt/kvm/kvm_main.c Marc Zyngier 2021-11-16 320 int me;
7053df4edb3ae3 virt/kvm/kvm_main.c Vitaly Kuznetsov 2018-05-16 321
ae0946cd360175 virt/kvm/kvm_main.c Vitaly Kuznetsov 2021-09-03 322 me = get_cpu();
ae0946cd360175 virt/kvm/kvm_main.c Vitaly Kuznetsov 2021-09-03 323
baff59ccdc657d virt/kvm/kvm_main.c Vitaly Kuznetsov 2021-09-03 324 cpus = this_cpu_cpumask_var_ptr(cpu_kick_mask);
baff59ccdc657d virt/kvm/kvm_main.c Vitaly Kuznetsov 2021-09-03 325 cpumask_clear(cpus);
baff59ccdc657d virt/kvm/kvm_main.c Vitaly Kuznetsov 2021-09-03 326
82e9c84d8712e8 virt/kvm/kvm_main.c Venkatesh Srinivas 2024-04-04 @327 kvm_for_each_vcpu(i, vcpu, kvm)
b56bd8e03cf4d5 virt/kvm/kvm_main.c Jinrong Liang 2022-01-25 328 kvm_make_vcpu_request(vcpu, req, cpus, me);
ae0946cd360175 virt/kvm/kvm_main.c Vitaly Kuznetsov 2021-09-03 329
ae0946cd360175 virt/kvm/kvm_main.c Vitaly Kuznetsov 2021-09-03 330 called = kvm_kick_many_cpus(cpus, !!(req & KVM_REQUEST_WAIT));
ae0946cd360175 virt/kvm/kvm_main.c Vitaly Kuznetsov 2021-09-03 331 put_cpu();
7053df4edb3ae3 virt/kvm/kvm_main.c Vitaly Kuznetsov 2018-05-16 332
498468961ed6f6 virt/kvm/kvm_main.c Rusty Russell 2008-12-08 333 return called;
d9e368d6126305 drivers/kvm/kvm_main.c Avi Kivity 2007-06-07 334 }
a2486020a82eef virt/kvm/kvm_main.c Marcelo Tosatti 2021-05-26 335 EXPORT_SYMBOL_GPL(kvm_make_all_cpus_request);
54163a346d4a0a virt/kvm/kvm_main.c Suravee Suthikulpanit 2020-05-06 336
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2024-10-03 14:58 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=202410032223.FPOUWbSX-lkp@intel.com \
--to=lkp@intel.com \
--cc=error27@gmail.com \
--cc=oe-kbuild@lists.linux.dev \
/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.