All of lore.kernel.org
 help / color / mirror / Atom feed
* [kvm-x86:svm 1/8] arch/x86/kvm/svm/svm.h:651:17: error: implicit declaration of function 'kvm_check_has_quirk'; did you mean 'kvm_check_request'?
@ 2026-05-14 12:17 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-05-14 12:17 UTC (permalink / raw)
  To: Jim Mattson; +Cc: oe-kbuild-all, Sean Christopherson

tree:   https://github.com/kvm-x86/linux svm
head:   119ec9368cb346f6d6da95942274fc4ce7bb77ee
commit: 37f5146b36c9744a3011a889cdd71e4155d68dba [1/8] KVM: x86: Define KVM_X86_QUIRK_NESTED_SVM_SHARED_PAT
config: x86_64-buildonly-randconfig-006-20260514 (https://download.01.org/0day-ci/archive/20260514/202605142024.lNChAIoo-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260514/202605142024.lNChAIoo-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/202605142024.lNChAIoo-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from arch/x86/kvm/svm/svm_onhyperv.c:11:
   arch/x86/kvm/svm/svm.h: In function 'l2_has_separate_pat':
>> arch/x86/kvm/svm/svm.h:651:17: error: implicit declaration of function 'kvm_check_has_quirk'; did you mean 'kvm_check_request'? [-Wimplicit-function-declaration]
     651 |                !kvm_check_has_quirk(vcpu->kvm, KVM_X86_QUIRK_NESTED_SVM_SHARED_PAT);
         |                 ^~~~~~~~~~~~~~~~~~~
         |                 kvm_check_request
   In file included from arch/x86/kvm/svm/svm_ops.h:7,
                    from arch/x86/kvm/svm/svm_onhyperv.c:12:
   arch/x86/kvm/x86.h: At top level:
>> arch/x86/kvm/x86.h:439:20: error: conflicting types for 'kvm_check_has_quirk'; have 'bool(struct kvm *, u64)' {aka '_Bool(struct kvm *, long long unsigned int)'}
     439 | static inline bool kvm_check_has_quirk(struct kvm *kvm, u64 quirk)
         |                    ^~~~~~~~~~~~~~~~~~~
   arch/x86/kvm/svm/svm.h:651:17: note: previous implicit declaration of 'kvm_check_has_quirk' with type 'int()'
     651 |                !kvm_check_has_quirk(vcpu->kvm, KVM_X86_QUIRK_NESTED_SVM_SHARED_PAT);
         |                 ^~~~~~~~~~~~~~~~~~~
--
   In file included from kvm/svm/svm_onhyperv.c:11:
   kvm/svm/svm.h: In function 'l2_has_separate_pat':
   kvm/svm/svm.h:651:17: error: implicit declaration of function 'kvm_check_has_quirk'; did you mean 'kvm_check_request'? [-Wimplicit-function-declaration]
     651 |                !kvm_check_has_quirk(vcpu->kvm, KVM_X86_QUIRK_NESTED_SVM_SHARED_PAT);
         |                 ^~~~~~~~~~~~~~~~~~~
         |                 kvm_check_request
   In file included from kvm/svm/svm_ops.h:7,
                    from kvm/svm/svm_onhyperv.c:12:
   arch/x86/kvm/x86.h: At top level:
>> arch/x86/kvm/x86.h:439:20: error: conflicting types for 'kvm_check_has_quirk'; have 'bool(struct kvm *, u64)' {aka '_Bool(struct kvm *, long long unsigned int)'}
     439 | static inline bool kvm_check_has_quirk(struct kvm *kvm, u64 quirk)
         |                    ^~~~~~~~~~~~~~~~~~~
   kvm/svm/svm.h:651:17: note: previous implicit declaration of 'kvm_check_has_quirk' with type 'int()'
     651 |                !kvm_check_has_quirk(vcpu->kvm, KVM_X86_QUIRK_NESTED_SVM_SHARED_PAT);
         |                 ^~~~~~~~~~~~~~~~~~~


vim +651 arch/x86/kvm/svm/svm.h

   643	
   644	static inline bool l2_has_separate_pat(struct kvm_vcpu *vcpu)
   645	{
   646		/*
   647		 * If KVM_X86_QUIRK_NESTED_SVM_SHARED_PAT is disabled while a vCPU
   648		 * is running, the L2 IA32_PAT semantics for that vCPU are undefined.
   649		 */
   650		return nested_npt_enabled(to_svm(vcpu)) &&
 > 651		       !kvm_check_has_quirk(vcpu->kvm, KVM_X86_QUIRK_NESTED_SVM_SHARED_PAT);
   652	}
   653	

--
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:[~2026-05-14 12:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-14 12:17 [kvm-x86:svm 1/8] arch/x86/kvm/svm/svm.h:651:17: error: implicit declaration of function 'kvm_check_has_quirk'; did you mean 'kvm_check_request'? 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.