llvm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH v4 08/11] x86/sev: Split off startup code from core code
       [not found] <20250410134117.3713574-21-ardb+git@google.com>
@ 2025-04-11 21:46 ` kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-04-11 21:46 UTC (permalink / raw)
  To: Ard Biesheuvel; +Cc: llvm, oe-kbuild-all

Hi Ard,

kernel test robot noticed the following build errors:

[auto build test ERROR on tip/master]
[also build test ERROR on next-20250411]
[cannot apply to tip/x86/core tip/x86/mm efi/next tip/auto-latest linus/master v6.15-rc1]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Ard-Biesheuvel/x86-asm-Make-rip_rel_ptr-usable-from-fPIC-code/20250410-214836
base:   tip/master
patch link:    https://lore.kernel.org/r/20250410134117.3713574-21-ardb%2Bgit%40google.com
patch subject: [PATCH v4 08/11] x86/sev: Split off startup code from core code
config: x86_64-buildonly-randconfig-005-20250411 (https://download.01.org/0day-ci/archive/20250412/202504120536.izfqm3jS-lkp@intel.com/config)
compiler: clang version 20.1.2 (https://github.com/llvm/llvm-project 58df0ef89dd64126512e4ee27b4ac3fd8ddf6247)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250412/202504120536.izfqm3jS-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202504120536.izfqm3jS-lkp@intel.com/

All errors (new ones prefixed by >>):

>> arch/x86/boot/compressed/sev.c:263:6: error: call to undeclared function 'vmgexit_psc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     263 |         if (vmgexit_psc(boot_ghcb, desc))
         |             ^
>> arch/x86/boot/compressed/sev.c:266:2: error: call to undeclared function 'pvalidate_pages'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     266 |         pvalidate_pages(desc);
         |         ^
   arch/x86/boot/compressed/sev.c:266:2: note: did you mean 'pvalidate_4k_page'?
   arch/x86/boot/compressed/../../coco/sev/shared.c:1227:20: note: 'pvalidate_4k_page' declared here
    1227 | static void __head pvalidate_4k_page(unsigned long vaddr, unsigned long paddr,
         |                    ^
   2 errors generated.


vim +/vmgexit_psc +263 arch/x86/boot/compressed/sev.c

597cfe48212a3f arch/x86/boot/compressed/sev-es.c Joerg Roedel 2020-09-07  232  
6c3211796326a9 arch/x86/boot/compressed/sev.c    Tom Lendacky 2023-06-06  233  static phys_addr_t __snp_accept_memory(struct snp_psc_desc *desc,
6c3211796326a9 arch/x86/boot/compressed/sev.c    Tom Lendacky 2023-06-06  234  				       phys_addr_t pa, phys_addr_t pa_end)
6c3211796326a9 arch/x86/boot/compressed/sev.c    Tom Lendacky 2023-06-06  235  {
6c3211796326a9 arch/x86/boot/compressed/sev.c    Tom Lendacky 2023-06-06  236  	struct psc_hdr *hdr;
6c3211796326a9 arch/x86/boot/compressed/sev.c    Tom Lendacky 2023-06-06  237  	struct psc_entry *e;
6c3211796326a9 arch/x86/boot/compressed/sev.c    Tom Lendacky 2023-06-06  238  	unsigned int i;
6c3211796326a9 arch/x86/boot/compressed/sev.c    Tom Lendacky 2023-06-06  239  
6c3211796326a9 arch/x86/boot/compressed/sev.c    Tom Lendacky 2023-06-06  240  	hdr = &desc->hdr;
6c3211796326a9 arch/x86/boot/compressed/sev.c    Tom Lendacky 2023-06-06  241  	memset(hdr, 0, sizeof(*hdr));
6c3211796326a9 arch/x86/boot/compressed/sev.c    Tom Lendacky 2023-06-06  242  
6c3211796326a9 arch/x86/boot/compressed/sev.c    Tom Lendacky 2023-06-06  243  	e = desc->entries;
6c3211796326a9 arch/x86/boot/compressed/sev.c    Tom Lendacky 2023-06-06  244  
6c3211796326a9 arch/x86/boot/compressed/sev.c    Tom Lendacky 2023-06-06  245  	i = 0;
6c3211796326a9 arch/x86/boot/compressed/sev.c    Tom Lendacky 2023-06-06  246  	while (pa < pa_end && i < VMGEXIT_PSC_MAX_ENTRY) {
6c3211796326a9 arch/x86/boot/compressed/sev.c    Tom Lendacky 2023-06-06  247  		hdr->end_entry = i;
6c3211796326a9 arch/x86/boot/compressed/sev.c    Tom Lendacky 2023-06-06  248  
6c3211796326a9 arch/x86/boot/compressed/sev.c    Tom Lendacky 2023-06-06  249  		e->gfn = pa >> PAGE_SHIFT;
6c3211796326a9 arch/x86/boot/compressed/sev.c    Tom Lendacky 2023-06-06  250  		e->operation = SNP_PAGE_STATE_PRIVATE;
6c3211796326a9 arch/x86/boot/compressed/sev.c    Tom Lendacky 2023-06-06  251  		if (IS_ALIGNED(pa, PMD_SIZE) && (pa_end - pa) >= PMD_SIZE) {
6c3211796326a9 arch/x86/boot/compressed/sev.c    Tom Lendacky 2023-06-06  252  			e->pagesize = RMP_PG_SIZE_2M;
6c3211796326a9 arch/x86/boot/compressed/sev.c    Tom Lendacky 2023-06-06  253  			pa += PMD_SIZE;
6c3211796326a9 arch/x86/boot/compressed/sev.c    Tom Lendacky 2023-06-06  254  		} else {
6c3211796326a9 arch/x86/boot/compressed/sev.c    Tom Lendacky 2023-06-06  255  			e->pagesize = RMP_PG_SIZE_4K;
6c3211796326a9 arch/x86/boot/compressed/sev.c    Tom Lendacky 2023-06-06  256  			pa += PAGE_SIZE;
6c3211796326a9 arch/x86/boot/compressed/sev.c    Tom Lendacky 2023-06-06  257  		}
6c3211796326a9 arch/x86/boot/compressed/sev.c    Tom Lendacky 2023-06-06  258  
6c3211796326a9 arch/x86/boot/compressed/sev.c    Tom Lendacky 2023-06-06  259  		e++;
6c3211796326a9 arch/x86/boot/compressed/sev.c    Tom Lendacky 2023-06-06  260  		i++;
6c3211796326a9 arch/x86/boot/compressed/sev.c    Tom Lendacky 2023-06-06  261  	}
6c3211796326a9 arch/x86/boot/compressed/sev.c    Tom Lendacky 2023-06-06  262  
6c3211796326a9 arch/x86/boot/compressed/sev.c    Tom Lendacky 2023-06-06 @263  	if (vmgexit_psc(boot_ghcb, desc))
6c3211796326a9 arch/x86/boot/compressed/sev.c    Tom Lendacky 2023-06-06  264  		sev_es_terminate(SEV_TERM_SET_LINUX, GHCB_TERM_PSC);
6c3211796326a9 arch/x86/boot/compressed/sev.c    Tom Lendacky 2023-06-06  265  
6c3211796326a9 arch/x86/boot/compressed/sev.c    Tom Lendacky 2023-06-06 @266  	pvalidate_pages(desc);
6c3211796326a9 arch/x86/boot/compressed/sev.c    Tom Lendacky 2023-06-06  267  
6c3211796326a9 arch/x86/boot/compressed/sev.c    Tom Lendacky 2023-06-06  268  	return pa;
6c3211796326a9 arch/x86/boot/compressed/sev.c    Tom Lendacky 2023-06-06  269  }
6c3211796326a9 arch/x86/boot/compressed/sev.c    Tom Lendacky 2023-06-06  270  

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-04-11 21:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20250410134117.3713574-21-ardb+git@google.com>
2025-04-11 21:46 ` [PATCH v4 08/11] x86/sev: Split off startup code from core code kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).