tree:
https://git.kernel.org/pub/scm/linux/kernel/git/luto/linux.git sched/lazymm
head: ecc3992c36cb88087df9c537e2326efb51c95e31
commit: 9f81d011fbe6ff333c5a68e317d7ed7835db699d [2/10] x86/mm: Handle unlazying
membarrier core sync in the arch code
config: x86_64-randconfig-r023-20210617 (attached as .config)
compiler: clang version 13.0.0 (
https://github.com/llvm/llvm-project
64720f57bea6a6bf033feef4a5751ab9c0c3b401)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
#
https://git.kernel.org/pub/scm/linux/kernel/git/luto/linux.git/commit/?id...
git remote add luto
https://git.kernel.org/pub/scm/linux/kernel/git/luto/linux.git
git fetch --no-tags luto sched/lazymm
git checkout 9f81d011fbe6ff333c5a68e317d7ed7835db699d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
> arch/x86/mm/tlb.c:425:34: error: no member named
'membarrier_state' in 'struct mm_struct'
if
(unlikely(atomic_read(&next->membarrier_state) &
~~~~ ^
include/linux/compiler.h:48:41: note: expanded from macro 'unlikely'
# define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x)))
^
include/linux/compiler.h:33:34: note: expanded from macro '__branch_check__'
______r = __builtin_expect(!!(x), expect); \
^
> arch/x86/mm/tlb.c:426:8: error: use of undeclared identifier
'MEMBARRIER_STATE_PRIVATE_EXPEDITED_SYNC_CORE'
MEMBARRIER_STATE_PRIVATE_EXPEDITED_SYNC_CORE))
^
> arch/x86/mm/tlb.c:425:34: error: no member named
'membarrier_state' in 'struct mm_struct'
if
(unlikely(atomic_read(&next->membarrier_state) &
~~~~ ^
include/linux/compiler.h:48:68: note: expanded from macro 'unlikely'
# define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x)))
^
include/linux/compiler.h:35:19: note: expanded from macro '__branch_check__'
expect, is_constant); \
^~~~~~~~~~~
> arch/x86/mm/tlb.c:426:8: error: use of undeclared identifier
'MEMBARRIER_STATE_PRIVATE_EXPEDITED_SYNC_CORE'
MEMBARRIER_STATE_PRIVATE_EXPEDITED_SYNC_CORE))
^
4 errors generated.
vim +425 arch/x86/mm/tlb.c
422
423 static void sync_core_if_membarrier_enabled(struct mm_struct *next)
424 {
425 if (unlikely(atomic_read(&next->membarrier_state) &
426 MEMBARRIER_STATE_PRIVATE_EXPEDITED_SYNC_CORE))
427 sync_core_before_usermode();
428 }
429
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org