Hi Peter,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on asm-generic/master]
[cannot apply to arm64/for-next/core linus/master hnaz-linux-mm/master v5.11-rc3
next-20210115]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url:
https://github.com/0day-ci/linux/commits/Peter-Xu/userfaultfd-wp-Support-...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic.git master
config: mips-randconfig-p001-20210115 (attached as .config)
compiler: mips-linux-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://github.com/0day-ci/linux/commit/b77e0f36ccdb01804bf08cc2bf67403e1...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Peter-Xu/userfaultfd-wp-Support-shmem-and-hugetlbfs/20210116-011305
git checkout b77e0f36ccdb01804bf08cc2bf67403e13f75ae6
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips
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 fs/userfaultfd.c:30:
fs/userfaultfd.c: In function 'hugetlb_unshare_all_pmds':
> include/linux/hugetlb.h:971:49: error: implicit declaration of
function 'flush_tlb_range'; did you mean 'flush_pmd_tlb_range'?
[-Werror=implicit-function-declaration]
971 | #define
flush_hugetlb_tlb_range(vma, addr, end) flush_tlb_range(vma, addr, end)
| ^~~~~~~~~~~~~~~
fs/userfaultfd.c:1232:2: note: in expansion of macro 'flush_hugetlb_tlb_range'
1232 | flush_hugetlb_tlb_range(vma, vma->vm_start, vma->vm_end);
| ^~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +971 include/linux/hugetlb.h
af7cc4ba61a97d Peter Xu 2021-01-15 965
e9650bd70dc030 Peter Xu 2021-01-15 966 #ifndef __HAVE_ARCH_FLUSH_HUGETLB_TLB_RANGE
e9650bd70dc030 Peter Xu 2021-01-15 967 /*
e9650bd70dc030 Peter Xu 2021-01-15 968 * ARCHes with special requirements for evicting
HUGETLB backing TLB entries can
e9650bd70dc030 Peter Xu 2021-01-15 969 * implement this.
e9650bd70dc030 Peter Xu 2021-01-15 970 */
e9650bd70dc030 Peter Xu 2021-01-15 @971 #define flush_hugetlb_tlb_range(vma, addr,
end) flush_tlb_range(vma, addr, end)
e9650bd70dc030 Peter Xu 2021-01-15 972 #endif
e9650bd70dc030 Peter Xu 2021-01-15 973
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org