tree: git://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git efi-zboot-direct head: c4954c4853a50dbfefd1beb56d466ab612164ae2 commit: ac80575cb5f533845586357fd272898e4fdaf44a [31/35] efi/riscv: libstub: Split off kernel image relocation for builtin stub config: riscv-allmodconfig compiler: riscv64-linux-gcc (GCC) 12.1.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git/commit/?id=ac80575cb5f533845586357fd272898e4fdaf44a git remote add ardb git://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git git fetch --no-tags ardb efi-zboot-direct git checkout ac80575cb5f533845586357fd272898e4fdaf44a # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash drivers/firmware/efi/libstub/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> drivers/firmware/efi/libstub/riscv-stub.c:14:15: warning: no previous prototype for 'stext_offset' [-Wmissing-prototypes] 14 | unsigned long stext_offset(void) | ^~~~~~~~~~~~ -- >> drivers/firmware/efi/libstub/riscv.c:75:22: warning: no previous prototype for 'stext_offset' [-Wmissing-prototypes] 75 | unsigned long __weak stext_offset(void) | ^~~~~~~~~~~~ vim +/stext_offset +14 drivers/firmware/efi/libstub/riscv-stub.c 13 > 14 unsigned long stext_offset(void) 15 { 16 /* 17 * When built as part of the kernel, the EFI stub cannot branch to the 18 * kernel proper via the image header, as the PE/COFF header is 19 * strictly not part of the in-memory presentation of the image, only 20 * of the file representation. So instead, we need to jump to the 21 * actual entrypoint in the .text region of the image. 22 */ 23 return _start_kernel - _start; 24 } 25 -- 0-DAY CI Kernel Test Service https://01.org/lkp