[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202210132019.2kKUyA8j-lkp@intel.com>
Date: Thu, 13 Oct 2022 21:48:58 +0800
From: kernel test robot <lkp@...el.com>
To: Ard Biesheuvel <ardb@...nel.org>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [ardb:efi-zboot-direct 33/35]
drivers/firmware/efi/libstub/loongarch-stub.c:76:15: warning: no previous
prototype for 'kernel_entry_offset'
tree: git://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git efi-zboot-direct
head: c4954c4853a50dbfefd1beb56d466ab612164ae2
commit: 16df329536beea89c24579e27edc6437166e783b [33/35] efi/loongarch: Don't jump to kernel entry via the old image
config: loongarch-allyesconfig
compiler: loongarch64-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=16df329536beea89c24579e27edc6437166e783b
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 16df329536beea89c24579e27edc6437166e783b
# 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=loongarch 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/loongarch-stub.c:76:15: warning: no previous prototype for 'kernel_entry_offset' [-Wmissing-prototypes]
76 | unsigned long kernel_entry_offset(void)
| ^~~~~~~~~~~~~~~~~~~
vim +/kernel_entry_offset +76 drivers/firmware/efi/libstub/loongarch-stub.c
75
> 76 unsigned long kernel_entry_offset(void)
77 {
78 unsigned long base = (unsigned long)&kernel_offset - kernel_offset;
79
80 return (unsigned long)&kernel_entry - base;
81 }
82
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (325924 bytes)
Powered by blists - more mailing lists