undefined reference to `ftrace_likely_update'

From: kernel test robot
Date: Mon May 29 2023 - 15:22:55 EST


Hi Kees,

FYI, the error/warning still remains.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 8b817fded42d8fe3a0eb47b1149d907851a3c942
commit: 54d9469bc515dc5fcbc20eecbe19cea868b70d68 fortify: Add run-time WARN for cross-field memcpy()
date: 9 months ago
config: s390-randconfig-r033-20230529 (https://download.01.org/0day-ci/archive/20230530/202305300324.O7irARsx-lkp@xxxxxxxxx/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project 4faf3aaf28226a4e950c103a14f6fc1d1fdabb1b)
reproduce (this is a W=1 build):
mkdir -p ~/bin
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install s390 cross compiling tool for clang build
# apt-get install binutils-s390x-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=54d9469bc515dc5fcbc20eecbe19cea868b70d68
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 54d9469bc515dc5fcbc20eecbe19cea868b70d68
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang ~/bin/make.cross W=1 O=build_dir ARCH=s390 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang ~/bin/make.cross W=1 O=build_dir ARCH=s390 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202305300324.O7irARsx-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

s390x-linux-ld: arch/s390/purgatory/purgatory: in function `sha256_update':
>> (.text+0x23f2): undefined reference to `ftrace_likely_update'
>> s390x-linux-ld: (.text+0x240a): undefined reference to `ftrace_likely_update'
s390x-linux-ld: (.text+0x2422): undefined reference to `ftrace_likely_update'
s390x-linux-ld: (.text+0x2ad8): undefined reference to `ftrace_likely_update'
s390x-linux-ld: (.text+0x2af0): undefined reference to `ftrace_likely_update'
s390x-linux-ld: arch/s390/purgatory/purgatory:(.text+0x2b08): more undefined references to `ftrace_likely_update' follow

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki