[jpoimboe:lkdtm 2/3] drivers/misc/lkdtm/lkdtm.o: warning: objtool: bad .discard.retpoline_safe entry

From: kernel test robot
Date: Thu Jul 14 2022 - 18:41:56 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/jpoimboe/linux.git lkdtm
head: 91b11c81a070d7a1c75c467ccf6703b01cf78cfb
commit: 26fe5d8405b16b3153bdb867dda090256a561b80 [2/3] lkdtm: Disable return thunks in rodata.c
config: x86_64-allmodconfig (https://download.01.org/0day-ci/archive/20220715/202207150619.JN2TT9Qo-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/jpoimboe/linux.git/commit/?id=26fe5d8405b16b3153bdb867dda090256a561b80
git remote add jpoimboe https://git.kernel.org/pub/scm/linux/kernel/git/jpoimboe/linux.git
git fetch --no-tags jpoimboe lkdtm
git checkout 26fe5d8405b16b3153bdb867dda090256a561b80
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/misc/

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

All warnings (new ones prefixed by >>):

>> drivers/misc/lkdtm/lkdtm.o: warning: objtool: bad .discard.retpoline_safe entry

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