Re: [PATCH 3/5] mm/vma: Replace all remaining open encodings with is_vm_hugetlb_page()

From: kbuild test robot
Date: Tue Feb 18 2020 - 20:15:23 EST

Hi Anshuman,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on mmotm/master]
[also build test ERROR on tip/perf/core m68k/for-next powerpc/next tip/sched/core char-misc/char-misc-testing linux/master linus/master tip/x86/mm asm-generic/master v5.6-rc2 next-20200218]
[cannot apply to kvm-ppc/kvm-ppc-next]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see]

base: git:// master
config: nds32-allnoconfig (attached as .config)
compiler: nds32le-linux-gcc (GCC) 9.2.0
wget -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=9.2.0 make.cross ARCH=nds32

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

In file included from arch/nds32/include/asm/tlb.h:7,
from arch/nds32/mm/init.c:18:
include/asm-generic/tlb.h: In function 'tlb_update_vma_flags':
>> include/asm-generic/tlb.h:382:18: error: implicit declaration of function 'is_vm_hugetlb_page' [-Werror=implicit-function-declaration]
382 | tlb->vma_huge = is_vm_hugetlb_page(vma);
| ^~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors

vim +/is_vm_hugetlb_page +382 include/asm-generic/tlb.h

368 static inline void
369 tlb_update_vma_flags(struct mmu_gather *tlb, struct vm_area_struct *vma)
370 {
371 /*
372 * flush_tlb_range() implementations that look at VM_HUGETLB (tile,
373 * mips-4k) flush only large pages.
374 *
375 * flush_tlb_range() implementations that flush I-TLB also flush D-TLB
376 * (tile, xtensa, arm), so it's ok to just add VM_EXEC to an existing
377 * range.
378 *
379 * We rely on tlb_end_vma() to issue a flush, such that when we reset
380 * these values the batch is empty.
381 */
> 382 tlb->vma_huge = is_vm_hugetlb_page(vma);
383 tlb->vma_exec = !!(vma->vm_flags & VM_EXEC);
384 }

0-DAY CI Kernel Test Service, Intel Corporation

Attachment: .config.gz
Description: application/gzip