lkml.org 
[lkml]   [2022]   [Feb]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[peterz-queue:x86/wip.ibt 27/42] arch/x86/kernel/alternative.c:713:48: error: expected ')' before 'ANNOTATE_NOENDBR'
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git x86/wip.ibt
head: 27b6438f414b6a37b60dcd90c8980397586d49db
commit: 894eca106331b66d8f1c261d40386c043da75ee2 [27/42] x86/ibt: Annotate text references
config: i386-randconfig-a003 (https://download.01.org/0day-ci/archive/20220224/202202241413.vjfNrYxY-lkp@intel.com/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=894eca106331b66d8f1c261d40386c043da75ee2
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 894eca106331b66d8f1c261d40386c043da75ee2
# 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@intel.com>

All errors (new ones prefixed by >>):

>> arch/x86/kernel/alternative.c:713:48: error: expected ')' before 'ANNOTATE_NOENDBR'
713 | " .pushsection .init.text, \"ax\", @progbits\n"
| ^
| )
......
716 | ANNOTATE_NOENDBR
| ~~~~~~~~~~~~~~~~
arch/x86/kernel/alternative.c:712:5: note: to match this '('
712 | asm (
| ^
arch/x86/kernel/alternative.c: In function 'int3_selftest':
arch/x86/kernel/alternative.c:761:16: error: expected string literal before 'ANNOTATE_NOENDBR'
761 | asm volatile (ANNOTATE_NOENDBR
| ^~~~~~~~~~~~~~~~


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

ecc606103837b98 Peter Zijlstra 2019-07-08 711
ecc606103837b98 Peter Zijlstra 2019-07-08 712 asm (
ecc606103837b98 Peter Zijlstra 2019-07-08 @713 " .pushsection .init.text, \"ax\", @progbits\n"
ecc606103837b98 Peter Zijlstra 2019-07-08 714 " .type int3_magic, @function\n"
ecc606103837b98 Peter Zijlstra 2019-07-08 715 "int3_magic:\n"
894eca106331b66 Peter Zijlstra 2022-02-17 716 ANNOTATE_NOENDBR
ecc606103837b98 Peter Zijlstra 2019-07-08 717 " movl $1, (%" _ASM_ARG1 ")\n"
b17c2baa305cccb Peter Zijlstra 2021-12-04 718 ASM_RET
ecc606103837b98 Peter Zijlstra 2019-07-08 719 " .size int3_magic, .-int3_magic\n"
ecc606103837b98 Peter Zijlstra 2019-07-08 720 " .popsection\n"
ecc606103837b98 Peter Zijlstra 2019-07-08 721 );
7457c0da024b181 Peter Zijlstra 2019-05-03 722

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

:::::: TO: Peter Zijlstra <peterz@infradead.org>
:::::: CC: Thomas Gleixner <tglx@linutronix.de>

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

\
 
 \ /
  Last update: 2022-02-24 07:29    [W:0.054 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site