tree:
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-5.4
head: de62e075613ad8d1b4979186b1962e3ae58156f2
commit: c13517e00945f874d87a7d9e140ea0f6c5384f9a [196/290] mm/memory.c: fix a huge pud
insertion race during faulting
config: x86_64-defconfig (attached as .config)
compiler: clang version 11.0.0 (
https://github.com/llvm/llvm-project
13d44b2a0c7ef404b13b16644765977cd5310fe2)
reproduce:
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
git checkout c13517e00945f874d87a7d9e140ea0f6c5384f9a
# 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: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
In file included from arch/x86/kernel/asm-offsets.c:13:
In file included from include/linux/suspend.h:5:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:20:
In file included from include/linux/mm.h:99:
In file included from arch/x86/include/asm/pgtable.h:1469:
> include/asm-generic/pgtable.h:920:52: error: implicit declaration
of function 'pud_devmap' [-Werror,-Wimplicit-function-declaration]
if
(pud_none(pudval) || pud_trans_huge(pudval) || pud_devmap(pudval))
^
In file included from arch/x86/kernel/asm-offsets.c:13:
In file included from include/linux/suspend.h:5:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:20:
> include/linux/mm.h:572:19: error: static declaration of
'pud_devmap' follows non-static declaration
static inline int
pud_devmap(pud_t pud)
^
include/asm-generic/pgtable.h:920:52: note: previous implicit declaration is here
if (pud_none(pudval) || pud_trans_huge(pudval) || pud_devmap(pudval))
^
2 errors generated.
make[2]: *** [scripts/Makefile.build:99: arch/x86/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1111: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:179: sub-make] Error 2
vim +/pud_devmap +920 include/asm-generic/pgtable.h
914
915 /* See pmd_none_or_trans_huge_or_clear_bad for discussion. */
916 static inline int pud_none_or_trans_huge_or_dev_or_clear_bad(pud_t *pud)
917 {
918 pud_t pudval = READ_ONCE(*pud);
919
920 if (pud_none(pudval) || pud_trans_huge(pudval) ||
pud_devmap(pudval))
921 return 1;
922 if (unlikely(pud_bad(pudval))) {
923 pud_clear_bad(pud);
924 return 1;
925 }
926 return 0;
927 }
928
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org