[jpoimboe:lkdtm 2/3] drivers/misc/lkdtm/rodata.c:14:26: error: expected string literal in 'asm'

From: kernel test robot
Date: Thu Jul 14 2022 - 17:29:51 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: hexagon-randconfig-r024-20220714 (https://download.01.org/0day-ci/archive/20220715/202207150539.2uMSuhwL-lkp@xxxxxxxxx/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 5e61b9c556267086ef9b743a0b57df302eef831b)
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/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
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/misc/

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

All errors (new ones prefixed by >>):

>> drivers/misc/lkdtm/rodata.c:14:26: error: expected string literal in 'asm'
asm(ANNOTATE_UNRET_SAFE);
^
1 error generated.


vim +/asm +14 drivers/misc/lkdtm/rodata.c

8
9 void noinstr lkdtm_rodata_do_nothing(void)
10 {
11 /* Does nothing. We just want an architecture agnostic "return". */
12
13 if (IS_ENABLED(CONFIG_OBJTOOL))
> 14 asm(ANNOTATE_UNRET_SAFE);

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