[peterz-queue:x86/wip.ibt 23/24] arch/x86/kernel/alternative.c:757:48: error: expected ')' before 'ANNOTATE_NOENDBR'

From: kernel test robot
Date: Thu Feb 17 2022 - 17:32:11 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git x86/wip.ibt
head: 20f0cd68b8d42470e0a0459aa5db23d7dae8f83d
commit: 55d18ec3a2c0a2b4890ed79db60259d5623a59ca [23/24] x86/ibt: fixes
config: i386-randconfig-m021 (https://download.01.org/0day-ci/archive/20220218/202202180629.eWa6TvBL-lkp@xxxxxxxxx/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?id=55d18ec3a2c0a2b4890ed79db60259d5623a59ca
git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
git fetch --no-tags peterz-queue x86/wip.ibt
git checkout 55d18ec3a2c0a2b4890ed79db60259d5623a59ca
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash

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

All errors (new ones prefixed by >>):

>> arch/x86/kernel/alternative.c:757:48: error: expected ')' before 'ANNOTATE_NOENDBR'
757 | " .pushsection .init.text, \"ax\", @progbits\n"
| ^
| )
......
760 | ANNOTATE_NOENDBR
| ~~~~~~~~~~~~~~~~
arch/x86/kernel/alternative.c:756:5: note: to match this '('
756 | asm (
| ^
--
arch/x86/lib/retpoline.S: Assembler messages:
>> arch/x86/lib/retpoline.S:15: Error: no such instruction: `annotate_noendbr'


vim +757 arch/x86/kernel/alternative.c

ecc606103837b9 Peter Zijlstra 2019-07-08 755
ecc606103837b9 Peter Zijlstra 2019-07-08 756 asm (
ecc606103837b9 Peter Zijlstra 2019-07-08 @757 " .pushsection .init.text, \"ax\", @progbits\n"
ecc606103837b9 Peter Zijlstra 2019-07-08 758 " .type int3_magic, @function\n"
ecc606103837b9 Peter Zijlstra 2019-07-08 759 "int3_magic:\n"
55d18ec3a2c0a2 Peter Zijlstra 2022-02-17 760 ANNOTATE_NOENDBR
ecc606103837b9 Peter Zijlstra 2019-07-08 761 " movl $1, (%" _ASM_ARG1 ")\n"
b17c2baa305ccc Peter Zijlstra 2021-12-04 762 ASM_RET
ecc606103837b9 Peter Zijlstra 2019-07-08 763 " .size int3_magic, .-int3_magic\n"
ecc606103837b9 Peter Zijlstra 2019-07-08 764 " .popsection\n"
ecc606103837b9 Peter Zijlstra 2019-07-08 765 );
7457c0da024b18 Peter Zijlstra 2019-05-03 766

:::::: The code at line 757 was first introduced by commit
:::::: ecc606103837b98a2b665e8f14e533a6c72bbdc0 x86/alternatives: Fix int3_emulate_call() selftest stack corruption

:::::: TO: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
:::::: CC: Thomas Gleixner <tglx@xxxxxxxxxxxxx>

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