From: kernel test robot <lkp@intel.com>
To: Ard Biesheuvel <ardb@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [ardb:x86-efi-zboot 16/16] drivers/firmware/efi/libstub/zboot-x86.c:26:14: error: conflicting types for 'efi_decompress_kernel'
Date: Tue, 28 Jan 2025 19:36:50 +0800 [thread overview]
Message-ID: <202501281944.OIGe40x9-lkp@intel.com> (raw)
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
reply other threads:[~2025-01-28 11:37 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202501281944.OIGe40x9-lkp@intel.com \
--to=lkp@intel.com \
--cc=ardb@kernel.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox