Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [arm-integrator:b4/arm-generic-entry-v6.14-rc1-cleanup-patch 33/33] arch/arm/kernel/entry-common.S:200:2: error: invalid instruction, any one of the following would fix this:
@ 2025-03-07 12:06 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-03-07 12:06 UTC (permalink / raw)
  To: Linus Walleij; +Cc: llvm, oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git b4/arm-generic-entry-v6.14-rc1-cleanup-patch
head:   231c6ca98693dab095d461ce8d7bfdbf73b0f7e0
commit: 231c6ca98693dab095d461ce8d7bfdbf73b0f7e0 [33/33] ARM: entry: Straighten syscall returns
config: arm-randconfig-003-20250307 (https://download.01.org/0day-ci/archive/20250307/202503072001.bAYqc08h-lkp@intel.com/config)
compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250307/202503072001.bAYqc08h-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202503072001.bAYqc08h-lkp@intel.com/

All errors (new ones prefixed by >>):

>> arch/arm/kernel/entry-common.S:200:2: error: invalid instruction, any one of the following would fix this:
    b 9002
    ^
   arch/arm/kernel/entry-common.S:200:4: note: invalid operand for instruction
    b 9002
      ^
   arch/arm/kernel/entry-common.S:200:2: note: instruction requires: thumb
    b 9002
    ^


vim +200 arch/arm/kernel/entry-common.S

   166	
   167		/* saved_psr and saved_pc are now dead */
   168	
   169		uaccess_disable tbl
   170		get_thread_info tsk
   171		/* Save a per-task copy of SP for sigreturn */
   172		str	sp, [tsk, #TI_SP_SYSCALL]
   173	
   174		adr	tbl, sys_call_table		@ load syscall table pointer
   175	
   176	#if defined(CONFIG_OABI_COMPAT)
   177		/*
   178		 * If the swi argument is zero, this is an EABI call and we do nothing.
   179		 *
   180		 * If this is an old ABI call, get the syscall number into scno and
   181		 * get the old ABI syscall table address.
   182		 */
   183		bics	r10, r10, #0xff000000
   184		strne	r10, [tsk, #TI_ABI_SYSCALL]
   185		streq	scno, [tsk, #TI_ABI_SYSCALL]
   186		eorne	scno, r10, #__NR_OABI_SYSCALL_BASE
   187		ldrne	tbl, =sys_oabi_call_table
   188	#elif !defined(CONFIG_AEABI)
   189		bic	scno, scno, #0xff000000		@ mask off SWI op-code
   190		str	scno, [tsk, #TI_ABI_SYSCALL]
   191		eor	scno, scno, #__NR_SYSCALL_BASE	@ check OS number
   192	#else
   193		str	scno, [tsk, #TI_ABI_SYSCALL]
   194	#endif
   195		mov	r1, sp				@ put regs into r1
   196		stmdb	sp!, {r4, r5}			@ push fifth and sixth args
   197		mov	r0, tbl
   198		mov	r2, scno			@ syscall number from r7
   199		bl	invoke_syscall
 > 200		b	9002
   201	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-03-07 12:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-07 12:06 [arm-integrator:b4/arm-generic-entry-v6.14-rc1-cleanup-patch 33/33] arch/arm/kernel/entry-common.S:200:2: error: invalid instruction, any one of the following would fix this: kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox