tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: d68dc6ee371ec5466be9b2d76bdca0b360940adc commit: bd254ad9ed5fb35dc87b90f98ebb805567ff0472 [1636/1636] LoongArch: KVM: Add irqfd support config: loongarch-randconfig-001-20241213 (https://download.01.org/0day-ci/archive/20241214/202412140030.ws7cfuVO-lkp@i...) compiler: loongarch64-linux-gcc (GCC) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241214/202412140030.ws7cfuVO-lkp@i...)
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/202412140030.ws7cfuVO-lkp@intel.com/
All warnings (new ones prefixed by >>):
arch/loongarch/kvm/intc/pch_pic.c: In function 'kvm_setup_default_irq_routing':
arch/loongarch/kvm/intc/pch_pic.c:459:16: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
459 | int i, ret; | ^~~ --
arch/loongarch/kvm/irqfd.c:81: warning: Function parameter or member 'e' not described in 'kvm_set_msi' arch/loongarch/kvm/irqfd.c:81: warning: Function parameter or member 'kvm' not described in 'kvm_set_msi' arch/loongarch/kvm/irqfd.c:81: warning: Function parameter or member 'irq_source_id' not described in 'kvm_set_msi' arch/loongarch/kvm/irqfd.c:81: warning: Function parameter or member 'level' not described in 'kvm_set_msi' arch/loongarch/kvm/irqfd.c:81: warning: Function parameter or member 'line_status' not described in 'kvm_set_msi'
vim +/ret +459 arch/loongarch/kvm/intc/pch_pic.c
453 454 static int kvm_setup_default_irq_routing(struct kvm *kvm) 455 { 456 struct kvm_irq_routing_entry *entries; 457 458 u32 nr = KVM_IRQCHIP_NUM_PINS;
459 int i, ret;
460 461 entries = kcalloc(nr, sizeof(*entries), GFP_KERNEL); 462 if (!entries) 463 return -ENOMEM; 464 465 for (i = 0; i < nr; i++) { 466 entries[i].gsi = i; 467 entries[i].type = KVM_IRQ_ROUTING_IRQCHIP; 468 entries[i].u.irqchip.irqchip = 0; 469 entries[i].u.irqchip.pin = i; 470 } 471 ret = kvm_set_irq_routing(kvm, entries, nr, 0); 472 kfree(entries); 473 474 return 0; 475 } 476