[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202210141441.mghTUVSX-lkp@intel.com>
Date: Fri, 14 Oct 2022 14:47:03 +0800
From: kernel test robot <lkp@...el.com>
To: Ard Biesheuvel <ardb@...nel.org>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org
Subject: [ardb:efi-zboot-direct 31/35]
drivers/firmware/efi/libstub/riscv-stub.c:14:15: warning: no previous
prototype for function 'stext_offset'
tree: git://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git efi-zboot-direct
head: bf1830a27c8d6916637f2df1d9ff68812fb25cf9
commit: 557c44b5d9599f7277f8431d64bfbfffea763b43 [31/35] efi/riscv: libstub: Split off kernel image relocation for builtin stub
config: riscv-randconfig-r036-20221012
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 791a7ae1ba3efd6bca96338e10ffde557ba83920)
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
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git/commit/?id=557c44b5d9599f7277f8431d64bfbfffea763b43
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 557c44b5d9599f7277f8431d64bfbfffea763b43
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang 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 <lkp@...el.com>
All warnings (new ones prefixed by >>):
>> drivers/firmware/efi/libstub/riscv-stub.c:14:15: warning: no previous prototype for function 'stext_offset' [-Wmissing-prototypes]
unsigned long stext_offset(void)
^
drivers/firmware/efi/libstub/riscv-stub.c:14:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
unsigned long stext_offset(void)
^
static
1 warning generated.
--
>> drivers/firmware/efi/libstub/riscv.c:75:22: warning: no previous prototype for function 'stext_offset' [-Wmissing-prototypes]
unsigned long __weak stext_offset(void)
^
drivers/firmware/efi/libstub/riscv.c:75:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
unsigned long __weak stext_offset(void)
^
static
1 warning generated.
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
View attachment "config" of type "text/plain" (181299 bytes)
Powered by blists - more mailing lists