[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202207131226.itbn6qxf-lkp@intel.com>
Date: Wed, 13 Jul 2022 12:57:20 +0800
From: kernel test robot <lkp@...el.com>
To: "Kirill A. Shutemov" <kirill.shutemov@...ux.intel.com>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org
Subject: [kas:lam 4/13] arch/x86/include/asm/tlbflush.h:380:36: error: use of
undeclared identifier 'cpu_tlbstate'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/kas/linux.git lam
head: ca9762d59aa41bc0a580c2f7668038d31c991f59
commit: ce8762cf0c572b53a82a08a369376c28cfb6fda4 [4/13] x86/mm: Handle LAM on context switch
config: x86_64-randconfig-a005
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project e60b4fb2b777118c0ff664a6347851df14fcf75b)
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=ce8762cf0c572b53a82a08a369376c28cfb6fda4
git remote add kas https://git.kernel.org/pub/scm/linux/kernel/git/kas/linux.git
git fetch --no-tags kas lam
git checkout ce8762cf0c572b53a82a08a369376c28cfb6fda4
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/video/fbdev/vermilion/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
In file included from drivers/video/fbdev/vermilion/vermilion.c:27:
>> arch/x86/include/asm/tlbflush.h:380:36: error: use of undeclared identifier 'cpu_tlbstate'
unsigned long lam = this_cpu_read(cpu_tlbstate.lam);
^
>> arch/x86/include/asm/tlbflush.h:380:36: error: use of undeclared identifier 'cpu_tlbstate'
>> arch/x86/include/asm/tlbflush.h:380:36: error: use of undeclared identifier 'cpu_tlbstate'
>> arch/x86/include/asm/tlbflush.h:380:36: error: use of undeclared identifier 'cpu_tlbstate'
>> arch/x86/include/asm/tlbflush.h:380:36: error: use of undeclared identifier 'cpu_tlbstate'
>> arch/x86/include/asm/tlbflush.h:380:36: error: use of undeclared identifier 'cpu_tlbstate'
>> arch/x86/include/asm/tlbflush.h:380:36: error: use of undeclared identifier 'cpu_tlbstate'
>> arch/x86/include/asm/tlbflush.h:380:36: error: use of undeclared identifier 'cpu_tlbstate'
>> arch/x86/include/asm/tlbflush.h:380:36: error: use of undeclared identifier 'cpu_tlbstate'
>> arch/x86/include/asm/tlbflush.h:380:36: error: use of undeclared identifier 'cpu_tlbstate'
>> arch/x86/include/asm/tlbflush.h:380:36: error: use of undeclared identifier 'cpu_tlbstate'
arch/x86/include/asm/tlbflush.h:387:17: error: use of undeclared identifier 'cpu_tlbstate'
this_cpu_write(cpu_tlbstate.lam, mask >> X86_CR3_LAM_U57_BIT);
^
arch/x86/include/asm/tlbflush.h:387:17: error: use of undeclared identifier 'cpu_tlbstate'
arch/x86/include/asm/tlbflush.h:387:17: error: use of undeclared identifier 'cpu_tlbstate'
arch/x86/include/asm/tlbflush.h:387:17: error: use of undeclared identifier 'cpu_tlbstate'
arch/x86/include/asm/tlbflush.h:387:17: error: use of undeclared identifier 'cpu_tlbstate'
arch/x86/include/asm/tlbflush.h:387:17: error: use of undeclared identifier 'cpu_tlbstate'
arch/x86/include/asm/tlbflush.h:387:17: error: use of undeclared identifier 'cpu_tlbstate'
arch/x86/include/asm/tlbflush.h:387:17: error: use of undeclared identifier 'cpu_tlbstate'
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
vim +/cpu_tlbstate +380 arch/x86/include/asm/tlbflush.h
376
377 #ifdef CONFIG_X86_64
378 static inline unsigned long tlbstate_lam_cr3_mask(void)
379 {
> 380 unsigned long lam = this_cpu_read(cpu_tlbstate.lam);
381
382 return lam << X86_CR3_LAM_U57_BIT;
383 }
384
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (138302 bytes)
Powered by blists - more mailing lists