Skip to contentSkip to conversation

vmlinux.o: warning: objtool: x86_64_start_reservations+0x28: unreachable instruction

PATCH kernel test robot 1 participant 1 message Feb 16, 2023

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw

::::::
:::::: Manual check reason: "low confidence static check first_new_problem: vmlinux.o: warning: objtool: x86_64_start_reservations+0x28: unreachable instruction" ::::::

BCC: [email protected]
CC: [email protected]
TO: Josh Poimboeuf <[email protected]>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jpoimboe/linux.git arch-cpu-idle-dead-noreturn
head:   78a61657ee5ece4553db7f8e89acbcfed22020b2
commit: 78a61657ee5ece4553db7f8e89acbcfed22020b2 [25/25] sched/idle: Mark arch_cpu_idle_dead() __noreturn

:::::: branch date: 32 hours ago
:::::: commit date: 32 hours ago
config: x86_64-randconfig-s021 (https://download.01.org/0day-ci/archive/20230216/[email protected]/config)
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce:

        # apt-get install sparse
        # sparse version: v0.6.4-39-gce1a6720-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/jpoimboe/linux.git/commit/?id=78a61657ee5ece4553db7f8e89acbcfed22020b2
        git remote add jpoimboe https://git.kernel.org/pub/scm/linux/kernel/git/jpoimboe/linux.git
        git fetch --no-tags jpoimboe arch-cpu-idle-dead-noreturn
        git checkout 78a61657ee5ece4553db7f8e89acbcfed22020b2
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 olddefconfig
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot <[email protected]>
| Link: https://lore.kernel.org/r/[email protected]/

All warnings (new ones prefixed by >>):

>> vmlinux.o: warning: objtool: x86_64_start_reservations+0x28: unreachable instruction

objdump-func vmlinux.o x86_64_start_reservations:
0000 00000000000005d6 <x86_64_start_reservations>:

0000      5d6:	f3 0f 1e fa          	endbr64
0004      5da:	55                   	push   %rbp
0005      5db:	66 83 3d 00 00 00 00 00 	cmpw   $0x0,0x0(%rip)        # 5e3 <x86_64_start_reservations+0xd>	5de: R_X86_64_PC32	boot_params+0x201
000d      5e3:	48 89 e5             	mov    %rsp,%rbp
0010      5e6:	75 0c                	jne    5f4 <x86_64_start_reservations+0x1e>
0012      5e8:	48 03 3d 00 00 00 00 	add    0x0(%rip),%rdi        # 5ef <x86_64_start_reservations+0x19>	5eb: R_X86_64_PC32	page_offset_base-0x4
0019      5ef:	e8 67 fc ff ff       	call   25b <copy_bootdata>
001e      5f4:	e8 00 00 00 00       	call   5f9 <x86_64_start_reservations+0x23>	5f5: R_X86_64_PLT32	x86_early_init_platform_quirks-0x4
0023      5f9:	e8 00 00 00 00       	call   5fe <x86_64_start_reservations+0x28>	5fa: R_X86_64_PLT32	start_kernel-0x4
0028      5fe:	5d                   	pop    %rbp
0029      5ff:	c3                   	ret
Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests