tree: https://github.com/intel/tdx.git kvm-upstream-workaround head: 699e64cb199ffac8cf4c8eff2e96fed94fcf5a0b commit: fab0f69e33de02a86f43e8ed45f22163db4ec4a0 [61/350] KVM: Update lpage info when private/shared memory are mixed config: i386-randconfig-a013-20220926 compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/intel/tdx/commit/fab0f69e33de02a86f43e8ed45f22163db4ec4a0 git remote add intel-tdx https://github.com/intel/tdx.git git fetch --no-tags intel-tdx kvm-upstream-workaround git checkout fab0f69e33de02a86f43e8ed45f22163db4ec4a0 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash arch/x86/kvm/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All warnings (new ones prefixed by >>): arch/x86/kvm/mmu/mmu.c:6908:22: error: no member named 'mem_attr_array' in 'struct kvm' XA_STATE(xas, &kvm->mem_attr_array, start); ~~~ ^ include/linux/xarray.h:1369:36: note: expanded from macro 'XA_STATE' struct xa_state name = __XA_STATE(array, index, 0, 0) ^~~~~ include/linux/xarray.h:1348:8: note: expanded from macro '__XA_STATE' .xa = array, \ ^~~~~ arch/x86/kvm/mmu/mmu.c:6914:14: error: use of undeclared identifier 'KVM_MEM_ATTR_SHARED' if (attr == KVM_MEM_ATTR_SHARED) { ^ arch/x86/kvm/mmu/mmu.c:6999:22: error: use of undeclared identifier 'KVM_MEM_ATTR_PRIVATE' WARN_ONCE(!(attr & (KVM_MEM_ATTR_PRIVATE | KVM_MEM_ATTR_SHARED)), ^ arch/x86/kvm/mmu/mmu.c:6999:45: error: use of undeclared identifier 'KVM_MEM_ATTR_SHARED' WARN_ONCE(!(attr & (KVM_MEM_ATTR_PRIVATE | KVM_MEM_ATTR_SHARED)), ^ >> arch/x86/kvm/mmu/mmu.c:6991:6: warning: no previous prototype for function 'kvm_arch_update_mem_attr' [-Wmissing-prototypes] void kvm_arch_update_mem_attr(struct kvm *kvm, unsigned int attr, ^ arch/x86/kvm/mmu/mmu.c:6991:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void kvm_arch_update_mem_attr(struct kvm *kvm, unsigned int attr, ^ static 1 warning and 4 errors generated. vim +/kvm_arch_update_mem_attr +6991 arch/x86/kvm/mmu/mmu.c 6990 > 6991 void kvm_arch_update_mem_attr(struct kvm *kvm, unsigned int attr, -- 0-DAY CI Kernel Test Service https://01.org/lkp