Hi Fuad, kernel test robot noticed the following build errors: [auto build test ERROR on 82f2b0b97b36ee3fcddf0f0780a9a0825d52fec3] url: https://github.com/intel-lab-lkp/linux/commits/Fuad-Tabba/KVM-Rename-CONFIG_KVM_PRIVATE_MEM-to-CONFIG_KVM_GMEM/20250514-003900 base: 82f2b0b97b36ee3fcddf0f0780a9a0825d52fec3 patch link: https://lore.kernel.org/r/20250513163438.3942405-11-tabba%40google.com patch subject: [PATCH v9 10/17] KVM: x86: Compute max_mapping_level with input from guest_memfd config: x86_64-buildonly-randconfig-002-20250514 (https://download.01.org/0day-ci/archive/20250514/202505142334.6dQb5Sei-lkp@xxxxxxxxx/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/20250514/202505142334.6dQb5Sei-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/202505142334.6dQb5Sei-lkp@xxxxxxxxx/ All errors (new ones prefixed by >>): arch/x86/kvm/mmu/mmu.c: In function 'kvm_mmu_max_mapping_level': >> arch/x86/kvm/mmu/mmu.c:3315:14: error: implicit declaration of function 'kvm_get_memory_attributes' [-Werror=implicit-function-declaration] 3315 | kvm_get_memory_attributes(kvm, gfn) & KVM_MEMORY_ATTRIBUTE_PRIVATE)) { | ^~~~~~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors vim +/kvm_get_memory_attributes +3315 arch/x86/kvm/mmu/mmu.c 3303 3304 int kvm_mmu_max_mapping_level(struct kvm *kvm, 3305 const struct kvm_memory_slot *slot, gfn_t gfn) 3306 { 3307 int max_level; 3308 3309 max_level = kvm_lpage_info_max_mapping_level(kvm, slot, gfn, PG_LEVEL_NUM); 3310 if (max_level == PG_LEVEL_4K) 3311 return PG_LEVEL_4K; 3312 3313 if (kvm_slot_has_gmem(slot) && 3314 (kvm_gmem_memslot_supports_shared(slot) || > 3315 kvm_get_memory_attributes(kvm, gfn) & KVM_MEMORY_ATTRIBUTE_PRIVATE)) { 3316 return kvm_gmem_max_mapping_level(slot, gfn, max_level); 3317 } 3318 3319 return min(max_level, host_pfn_mapping_level(kvm, gfn, slot)); 3320 } 3321 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki