arch/arm64/kvm/hyp/nvhe/stacktrace.c:46:6: warning: no previous prototype for 'kvm_nvhe_prepare_backtrace'
From: kernel test robot
Date: Sat Mar 04 2023 - 21:10:20 EST
Hi Kalesh,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: b01fe98d34f3bed944a93bd8119fed80c856fad8
commit: 879e5ac7b2e4db05799a905b5a07fc9e5dedf651 KVM: arm64: Prepare non-protected nVHE hypervisor stacktrace
date: 7 months ago
config: arm64-defconfig (https://download.01.org/0day-ci/archive/20230305/202303050938.aodeOdgp-lkp@xxxxxxxxx/config)
compiler: aarch64-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/torvalds/linux.git/commit/?id=879e5ac7b2e4db05799a905b5a07fc9e5dedf651
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 879e5ac7b2e4db05799a905b5a07fc9e5dedf651
# 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=arm64 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash arch/arm64/kvm/hyp/nvhe/ drivers/remoteproc/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Link: https://lore.kernel.org/oe-kbuild-all/202303050938.aodeOdgp-lkp@xxxxxxxxx/
All warnings (new ones prefixed by >>):
>> arch/arm64/kvm/hyp/nvhe/stacktrace.c:46:6: warning: no previous prototype for 'kvm_nvhe_prepare_backtrace' [-Wmissing-prototypes]
46 | void kvm_nvhe_prepare_backtrace(unsigned long fp, unsigned long pc)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/kvm_nvhe_prepare_backtrace +46 arch/arm64/kvm/hyp/nvhe/stacktrace.c
36
37 /*
38 * kvm_nvhe_prepare_backtrace - prepare to dump the nVHE backtrace
39 *
40 * @fp : frame pointer at which to start the unwinding.
41 * @pc : program counter at which to start the unwinding.
42 *
43 * Saves the information needed by the host to dump the nVHE hypervisor
44 * backtrace.
45 */
> 46 void kvm_nvhe_prepare_backtrace(unsigned long fp, unsigned long pc)
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests