[peterz-queue:x86/fineibt 3/4] fgraph.c:undefined reference to `ftrace_stub_graph'

From: kernel test robot
Date: Fri Jul 29 2022 - 22:53:42 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git x86/fineibt
head: 365543b24a9e31c0c89457717391cdb819cc5501
commit: 311ed6d0d57a551f834efd610dc8b14867012a68 [3/4] ftrace,kcfi: Separate ftrace_stub() and ftrace_stub_graph()
config: i386-randconfig-a001 (https://download.01.org/0day-ci/archive/20220730/202207301052.NQbDVC7Z-lkp@xxxxxxxxx/config)
compiler: gcc-11 (Debian 11.3.0-3) 11.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?id=311ed6d0d57a551f834efd610dc8b14867012a68
git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
git fetch --no-tags peterz-queue x86/fineibt
git checkout 311ed6d0d57a551f834efd610dc8b14867012a68
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

ld: kernel/trace/fgraph.o: in function `unregister_ftrace_graph':
>> fgraph.c:(.text+0xf6c): undefined reference to `ftrace_stub_graph'
>> ld: kernel/trace/fgraph.o:(.data+0x31c): undefined reference to `ftrace_stub_graph'

--
0-DAY CI Kernel Test Service
https://01.org/lkp