[agraf-2.6:snp-host-v10 63/108] arch/x86/kernel/cpu/amd.c:634:14: error: 'max_pfn' undeclared; did you mean 'vmap_pfn'?

kernel test robot <[email protected]> Thu, 9 Nov 2023 17:25:14 +0800
Newsgroups org.kernel.vger.kvm-ppc,dev.linux.lists.oe-kbuild-all
Message-ID <[email protected]>
tree:   https://github.com/agraf/linux-2.6.git snp-host-v10
head:   689d7ab69df8f6bff29bd1dbefe7c07bba52a9ac
commit: 9aff2751f0009caae3c39b5f35bada15527db636 [63/108] x86/sev: Add the host SEV-SNP initialization support
config: i386-randconfig-012-20231108 (https://download.01.org/0day-ci/archive/20231109/[email protected]/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/20231109/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>):

   arch/x86/kernel/cpu/amd.c: In function 'early_rmptable_check':
>> arch/x86/kernel/cpu/amd.c:634:14: error: 'max_pfn' undeclared (first use in this function); did you mean 'vmap_pfn'?
     634 |         if (!max_pfn)
         |              ^~~~~~~
         |              vmap_pfn
   arch/x86/kernel/cpu/amd.c:634:14: note: each undeclared identifier is reported only once for each function it appears in


vim +634 arch/x86/kernel/cpu/amd.c

   625	
   626	static bool early_rmptable_check(void)
   627	{
   628		u64 rmp_base, rmp_size;
   629	
   630		/*
   631		 * For early BSP initialization, max_pfn won't be set up yet, wait until
   632		 * it is set before performing the RMP table calculations.
   633		 */
 > 634		if (!max_pfn)
   635			return true;
   636	
   637		return snp_get_rmptable_info(&rmp_base, &rmp_size);
   638	}
   639	

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