tree:
https://git.kernel.org/pub/scm/linux/kernel/git/andrea/aa.git mapcount_deshare
head: b58213a81caf568f0712f5586d1661ee1e2e3d67
commit: b58213a81caf568f0712f5586d1661ee1e2e3d67 [7/7] gup: FOLL_DESHARE: copy-on-read
fault
config: arc-randconfig-r011-20210115 (attached as .config)
compiler: arc-elf-gcc (GCC) 9.3.0
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/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 mapcount_deshare
git checkout b58213a81caf568f0712f5586d1661ee1e2e3d67
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc
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/arc/kernel/asm-offsets.c:7:
include/linux/mm.h: In function 'gup_page_deshare':
> include/linux/mm.h:2885:10: error: implicit declaration of
function 'page_trans_huge_anon_shared' [-Werror=implicit-function-declaration]
2885 | return page_trans_huge_anon_shared(page);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
--
In file included from arch/arc/kernel/asm-offsets.c:7:
include/linux/mm.h: In function 'gup_page_deshare':
> include/linux/mm.h:2885:10: error: implicit declaration of
function 'page_trans_huge_anon_shared' [-Werror=implicit-function-declaration]
2885 | return page_trans_huge_anon_shared(page);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:117: arch/arc/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/arc/kernel/asm-offsets.c:7:
include/linux/mm.h: In function 'gup_page_deshare':
> include/linux/mm.h:2885:10: error: implicit declaration of
function 'page_trans_huge_anon_shared' [-Werror=implicit-function-declaration]
2885 | return page_trans_huge_anon_shared(page);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:117: arch/arc/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