All of lore.kernel.org
 help / color / mirror / Atom feed
* [android-common:mirror-chromeos-5.10-arcvm 5/10] arch/x86/kvm/../../../virt/kvm/kvm_main.c:4388:50: error: 'kvm' undeclared
@ 2024-02-16  1:31 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-02-16  1:31 UTC (permalink / raw)
  To: cros-kernel-buildreports; +Cc: oe-kbuild-all

tree:   https://android.googlesource.com/kernel/common mirror-chromeos-5.10-arcvm
head:   f9690232902eb464b12d3aa2b42a878afdeb7e0a
commit: e83c4175c7c5f93b48df71be2926e360865c0120 [5/10] CHROMIUM: kvm: x86: enable/disable global/per-guest vcpu boost feature
config: i386-allmodconfig (https://download.01.org/0day-ci/archive/20240216/202402160928.7tGk35l3-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240216/202402160928.7tGk35l3-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/202402160928.7tGk35l3-lkp@intel.com/

All errors (new ones prefixed by >>):

   arch/x86/kvm/../../../virt/kvm/kvm_main.c: In function 'kvm_dev_ioctl':
>> arch/x86/kvm/../../../virt/kvm/kvm_main.c:4388:50: error: 'kvm' undeclared (first use in this function)
    4388 |                         kvm_set_pv_sched_enabled(kvm, arg);
         |                                                  ^~~
   arch/x86/kvm/../../../virt/kvm/kvm_main.c:4388:50: note: each undeclared identifier is reported only once for each function it appears in


vim +/kvm +4388 arch/x86/kvm/../../../virt/kvm/kvm_main.c

  4350	
  4351	static long kvm_dev_ioctl(struct file *filp,
  4352				  unsigned int ioctl, unsigned long arg)
  4353	{
  4354		long r = -EINVAL;
  4355	
  4356		switch (ioctl) {
  4357		case KVM_GET_API_VERSION:
  4358			if (arg)
  4359				goto out;
  4360			r = KVM_API_VERSION;
  4361			break;
  4362		case KVM_CREATE_VM:
  4363			r = kvm_dev_ioctl_create_vm(arg);
  4364			break;
  4365		case KVM_CHECK_EXTENSION:
  4366			r = kvm_vm_ioctl_check_extension_generic(NULL, arg);
  4367			break;
  4368		case KVM_GET_VCPU_MMAP_SIZE:
  4369			if (arg)
  4370				goto out;
  4371			r = PAGE_SIZE;     /* struct kvm_run */
  4372	#ifdef CONFIG_X86
  4373			r += PAGE_SIZE;    /* pio data page */
  4374	#endif
  4375	#ifdef CONFIG_KVM_MMIO
  4376			r += PAGE_SIZE;    /* coalesced mmio ring page */
  4377	#endif
  4378			break;
  4379		case KVM_TRACE_ENABLE:
  4380		case KVM_TRACE_PAUSE:
  4381		case KVM_TRACE_DISABLE:
  4382			r = -EOPNOTSUPP;
  4383			break;
  4384	#ifdef CONFIG_PARAVIRT_SCHED_KVM
  4385		case KVM_SET_PV_SCHED_ENABLED:
  4386			r = -EINVAL;
  4387			if (arg == 0 || arg == 1) {
> 4388				kvm_set_pv_sched_enabled(kvm, arg);
  4389				r = 0;
  4390			}
  4391			break;
  4392		case KVM_GET_PV_SCHED_ENABLED:
  4393			r = kvm->pv_sched_enabled;
  4394			break;
  4395	#endif
  4396		default:
  4397			return kvm_arch_dev_ioctl(filp, ioctl, arg);
  4398		}
  4399	out:
  4400		return r;
  4401	}
  4402	

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-02-16  1:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-16  1:31 [android-common:mirror-chromeos-5.10-arcvm 5/10] arch/x86/kvm/../../../virt/kvm/kvm_main.c:4388:50: error: 'kvm' undeclared kernel test robot

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.