module.c:undefined reference to `apply_returns'

From: kernel test robot
Date: Thu Jul 14 2022 - 05:51:51 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 4a57a8400075bc5287c5c877702c68aeae2a033d
commit: 15e67227c49a57837108acfe1c80570e1bd9f962 x86: Undo return-thunk damage
date: 2 weeks ago
config: um-i386_defconfig (https://download.01.org/0day-ci/archive/20220714/202207141712.n23UKGoF-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/torvalds/linux.git/commit/?id=15e67227c49a57837108acfe1c80570e1bd9f962
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 15e67227c49a57837108acfe1c80570e1bd9f962
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=um SUBARCH=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 >>):

/usr/bin/ld: arch/x86/um/../kernel/module.o: in function `module_finalize':
>> module.c:(.text+0x23b): undefined reference to `apply_returns'
collect2: error: ld returned 1 exit status

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