decompress.c:undefined reference to `ftrace_likely_update'

From: kernel test robot
Date: Tue Mar 23 2021 - 10:54:53 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 84196390620ac0e5070ae36af84c137c6216a7dc
commit: baec970aa5ba11099ad7a91773350c91fb2113f0 mips: Add N64 machine type
date: 9 weeks ago
config: mips-randconfig-r014-20210323 (attached as .config)
compiler: mips-linux-gcc (GCC) 9.3.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=baec970aa5ba11099ad7a91773350c91fb2113f0
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout baec970aa5ba11099ad7a91773350c91fb2113f0
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips

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

All error/warnings (new ones prefixed by >>):

arch/mips/boot/compressed/decompress.c:38:6: warning: no previous prototype for 'error' [-Wmissing-prototypes]
38 | void error(char *x)
| ^~~~~
In file included from arch/mips/boot/compressed/../../../../lib/decompress_unlz4.c:10,
from arch/mips/boot/compressed/decompress.c:60:
>> arch/mips/boot/compressed/../../../../lib/lz4/lz4_decompress.c:484:5: warning: no previous prototype for 'LZ4_decompress_safe_withPrefix64k' [-Wmissing-prototypes]
484 | int LZ4_decompress_safe_withPrefix64k(const char *source, char *dest,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> arch/mips/boot/compressed/../../../../lib/lz4/lz4_decompress.c:506:5: warning: no previous prototype for 'LZ4_decompress_safe_forceExtDict' [-Wmissing-prototypes]
506 | int LZ4_decompress_safe_forceExtDict(const char *source, char *dest,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/mips/boot/compressed/decompress.c:81:6: warning: no previous prototype for '__stack_chk_fail' [-Wmissing-prototypes]
81 | void __stack_chk_fail(void)
| ^~~~~~~~~~~~~~~~
arch/mips/boot/compressed/decompress.c:86:6: warning: no previous prototype for 'decompress_kernel' [-Wmissing-prototypes]
86 | void decompress_kernel(unsigned long boot_heap_start)
| ^~~~~~~~~~~~~~~~~
--
mips-linux-ld: arch/mips/boot/compressed/decompress.o: in function `LZ4_decompress_safe_withSmallPrefix':
>> decompress.c:(.text+0xa4): undefined reference to `ftrace_likely_update'
>> mips-linux-ld: decompress.c:(.text+0x114): undefined reference to `ftrace_likely_update'
mips-linux-ld: decompress.c:(.text+0x184): undefined reference to `ftrace_likely_update'
mips-linux-ld: decompress.c:(.text+0x23c): undefined reference to `ftrace_likely_update'
mips-linux-ld: decompress.c:(.text+0x270): undefined reference to `ftrace_likely_update'
mips-linux-ld: arch/mips/boot/compressed/decompress.o:decompress.c:(.text+0x294): more undefined references to `ftrace_likely_update' follow

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip