* [ardb:x86-efi-zboot 16/16] drivers/firmware/efi/libstub/zboot-x86.c:26:14: error: conflicting types for 'efi_decompress_kernel'
@ 2025-01-28 11:36 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-01-28 11:36 UTC (permalink / raw)
To: Ard Biesheuvel; +Cc: llvm, oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git x86-efi-zboot
head: 9d45748a5e00217becbc742d98c413913ad8344a
commit: 9d45748a5e00217becbc742d98c413913ad8344a [16/16] efi zboot for x86
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20250128/202501281944.OIGe40x9-lkp@intel.com/config)
compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250128/202501281944.OIGe40x9-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/202501281944.OIGe40x9-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/firmware/efi/libstub/zboot-x86.c:26:14: error: conflicting types for 'efi_decompress_kernel'
26 | efi_status_t efi_decompress_kernel(unsigned long *kernel_entry)
| ^
drivers/firmware/efi/libstub/x86-stub.h:15:14: note: previous declaration is here
15 | efi_status_t efi_decompress_kernel(unsigned long *kernel_entry,
| ^
>> drivers/firmware/efi/libstub/zboot-x86.c:32:53: error: too few arguments to function call, expected 4, have 3
32 | efi_allocate_kernel(alloc_size, &virt_addr, &addr) ?:
| ~~~~~~~~~~~~~~~~~~~ ^
drivers/firmware/efi/libstub/x86-stub.h:17:14: note: 'efi_allocate_kernel' declared here
17 | efi_status_t efi_allocate_kernel(unsigned long alloc_size,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~
18 | unsigned long *virt_addr,
| ~~~~~~~~~~~~~~~~~~~~~~~~~
19 | unsigned long *alloc,
| ~~~~~~~~~~~~~~~~~~~~~
20 | struct boot_params *boot_params);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 errors generated.
vim +/efi_decompress_kernel +26 drivers/firmware/efi/libstub/zboot-x86.c
25
> 26 efi_status_t efi_decompress_kernel(unsigned long *kernel_entry)
27 {
28 unsigned long virt_addr, addr, alloc_size, entry;
29 efi_status_t status;
30
31 status = efi_zboot_decompress_init(&alloc_size, &entry) ?:
> 32 efi_allocate_kernel(alloc_size, &virt_addr, &addr) ?:
33 efi_zboot_decompress((void *)addr, alloc_size);
34 if (status != EFI_SUCCESS)
35 return status;
36
37
38 // TODO apply relocations
39 efi_warn("TODO relocate to 0x%lx\n", virt_addr);
40
41 *kernel_entry = addr + entry;
42 return EFI_SUCCESS;
43 }
44
--
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-01-28 11:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-28 11:36 [ardb:x86-efi-zboot 16/16] drivers/firmware/efi/libstub/zboot-x86.c:26:14: error: conflicting types for 'efi_decompress_kernel' 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