[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'?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/202311091744.Puw4ffC4-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/20231109/202311091744.Puw4ffC4-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/202311091744.Puw4ffC4-lkp@xxxxxxxxx/

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




[Index of Archives]     [KVM Development]     [KVM ARM]     [KVM ia64]     [Linux Virtualization]     [Linux USB Devel]     [Linux Video]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux