[stable:linux-5.15.y 7794/8135] arch/x86/kernel/cpu/bugs.o: warning: objtool: spectre_v2_user_select_mitigation()+0x2da: unreachable instruction

From: kernel test robot
Date: Mon Jul 04 2022 - 08:55:57 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.15.y
head: 545aecd229613138d6db54fb2b5221faca10137f
commit: 0853f905e48b92dcf27a8d931104c9aac10de191 [7794/8135] x86/cpu: Elide KCSAN for cpu_has() and friends
config: x86_64-randconfig-a006-20220704 (https://download.01.org/0day-ci/archive/20220704/202207042056.89dtC67G-lkp@xxxxxxxxx/config)
compiler: gcc-11 (Debian 11.3.0-3) 11.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/commit/?id=0853f905e48b92dcf27a8d931104c9aac10de191
git remote add stable https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
git fetch --no-tags stable linux-5.15.y
git checkout 0853f905e48b92dcf27a8d931104c9aac10de191
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash arch/x86/

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

All warnings (new ones prefixed by >>):

>> arch/x86/kernel/cpu/bugs.o: warning: objtool: spectre_v2_user_select_mitigation()+0x2da: unreachable instruction

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