[kas:lam 10/10] arch/x86/kernel/proc.c:35:17: error: use of undeclared identifier 'X86_THREAD_LAM_U48'

From: kernel test robot
Date: Thu Apr 07 2022 - 05:25:48 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/kas/linux.git lam
head: 73447e771c55e18598a6fbf6adee1002aee18ea0
commit: 73447e771c55e18598a6fbf6adee1002aee18ea0 [10/10] x86: Expose thread features status in /proc/$PID/arch_status
config: i386-randconfig-a002 (https://download.01.org/0day-ci/archive/20220407/202204071702.1AlCbCIC-lkp@xxxxxxxxx/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 6b306233f78876a1d197ed6e1f05785505de7c63)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/kas/linux.git/commit/?id=73447e771c55e18598a6fbf6adee1002aee18ea0
git remote add kas https://git.kernel.org/pub/scm/linux/kernel/git/kas/linux.git
git fetch --no-tags kas lam
git checkout 73447e771c55e18598a6fbf6adee1002aee18ea0
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross 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/proc.c:35:17: error: use of undeclared identifier 'X86_THREAD_LAM_U48'
if (features & X86_THREAD_LAM_U48)
^
>> arch/x86/kernel/proc.c:37:17: error: use of undeclared identifier 'X86_THREAD_LAM_U57'
if (features & X86_THREAD_LAM_U57)
^
2 errors generated.


vim +/X86_THREAD_LAM_U48 +35 arch/x86/kernel/proc.c

32
33 static void dump_features(struct seq_file *m, unsigned long features)
34 {
> 35 if (features & X86_THREAD_LAM_U48)
36 seq_puts(m, "lam_u48 ");
> 37 if (features & X86_THREAD_LAM_U57)
38 seq_puts(m, "lam_u57 ");
39 }
40

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