tree:
https://git.kernel.org/pub/scm/linux/kernel/git/andrea/aa.git master
head: 61cbd7f8bc18730f4aa33c28db2c70b4d9b25768
commit: e81975bed240b9922b1c6cc36c95155b3621fc32 [18/20] gup: FOLL_DESHARE: copy-on-read
fault
config: arm-randconfig-r002-20210115 (attached as .config)
compiler: clang version 12.0.0 (
https://github.com/llvm/llvm-project
d7bc3b7ce23b664d6620cdc32370a8614523ca2f)
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 arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
#
https://git.kernel.org/pub/scm/linux/kernel/git/andrea/aa.git/commit/?id=...
git remote add aa
https://git.kernel.org/pub/scm/linux/kernel/git/andrea/aa.git
git fetch --no-tags aa master
git checkout e81975bed240b9922b1c6cc36c95155b3621fc32
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm
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 >>):
In file included from arch/arm/kernel/asm-offsets.c:12:
> include/linux/mm.h:2885:10: error: implicit declaration of
function 'page_trans_huge_anon_shared' [-Werror,-Wimplicit-function-declaration]
return page_trans_huge_anon_shared(page);
^
1 error generated.
--
In file included from arch/arm/kernel/asm-offsets.c:12:
> include/linux/mm.h:2885:10: error: implicit declaration of
function 'page_trans_huge_anon_shared' [-Werror,-Wimplicit-function-declaration]
return page_trans_huge_anon_shared(page);
^
1 error generated.
make[2]: *** [scripts/Makefile.build:117: arch/arm/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1206: prepare0] Error 2
make[1]: Target 'modules_prepare' not remade because of errors.
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'modules_prepare' not remade because of errors.
--
In file included from arch/arm/kernel/asm-offsets.c:12:
> include/linux/mm.h:2885:10: error: implicit declaration of
function 'page_trans_huge_anon_shared' [-Werror,-Wimplicit-function-declaration]
return page_trans_huge_anon_shared(page);
^
1 error generated.
make[2]: *** [scripts/Makefile.build:117: arch/arm/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1206: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +/page_trans_huge_anon_shared +2885 include/linux/mm.h
2874
2875 static inline bool gup_page_deshare(unsigned int flags,
2876 struct page *page)
2877 {
2878 if (flags & FOLL_WRITE)
2879 return false;
2880 if (!PageAnon(page))
2881 return false;
2882 if (PageHuge(page))
2883 return false;
2884 if (PageTransHuge(page))
2885 return page_trans_huge_anon_shared(page);
2886 /*
page_mapcount > 1 */
2887 return atomic_read(&page->_mapcount) > 0;
2888 }
2889
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org