Re: [PATCH v6 01/10] KVM: x86: Define KVM_X86_QUIRK_NESTED_SVM_SHARED_PAT

From: kernel test robot

Date: Fri Apr 03 2026 - 04:44:04 EST


Hi Jim,

kernel test robot noticed the following build errors:

[auto build test ERROR on 3d6cdcc8883b5726513d245eef0e91cabfc397f7]

url: https://github.com/intel-lab-lkp/linux/commits/Jim-Mattson/KVM-x86-Define-KVM_X86_QUIRK_NESTED_SVM_SHARED_PAT/20260330-195326
base: 3d6cdcc8883b5726513d245eef0e91cabfc397f7
patch link: https://lore.kernel.org/r/20260326174944.3820245-2-jmattson%40google.com
patch subject: [PATCH v6 01/10] KVM: x86: Define KVM_X86_QUIRK_NESTED_SVM_SHARED_PAT
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20260402/202604021052.kPiiRT2h-lkp@xxxxxxxxx/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260402/202604021052.kPiiRT2h-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202604021052.kPiiRT2h-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

In file included from arch/x86/kvm/svm/svm_onhyperv.c:11:
>> arch/x86/kvm/svm/svm.h:622:4: error: call to undeclared function 'kvm_check_has_quirk'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
622 | !kvm_check_has_quirk(svm->vcpu.kvm,
| ^
In file included from arch/x86/kvm/svm/svm_onhyperv.c:12:
In file included from arch/x86/kvm/svm/svm_ops.h:7:
>> arch/x86/kvm/x86.h:429:20: error: conflicting types for 'kvm_check_has_quirk'
429 | static inline bool kvm_check_has_quirk(struct kvm *kvm, u64 quirk)
| ^
arch/x86/kvm/svm/svm.h:622:4: note: previous implicit declaration is here
622 | !kvm_check_has_quirk(svm->vcpu.kvm,
| ^
2 errors generated.


vim +/kvm_check_has_quirk +622 arch/x86/kvm/svm/svm.h

618
619 static inline bool l2_has_separate_pat(struct vcpu_svm *svm)
620 {
621 return nested_npt_enabled(svm) &&
> 622 !kvm_check_has_quirk(svm->vcpu.kvm,
623 KVM_X86_QUIRK_NESTED_SVM_SHARED_PAT);
624 }
625

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