tree: git://git.cmpxchg.org/linux-mmotm.git master head: 6102e3c755ac0084fdce65f69a7a149fc51a8a86 commit: 2e194852dda1e49db738559e428fd168c3d7a8b6 [124/321] mm: mmap: add mmap flag to request VM_LOCKONFAULT config: tile-tilegx_defconfig (attached as .config) reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout 2e194852dda1e49db738559e428fd168c3d7a8b6 # save the attached .config to linux build tree make.cross ARCH=tile All error/warnings (new ones prefixed by >>): In file included from fs/hugetlbfs/inode.c:30:0: include/linux/mman.h: In function 'calc_vm_flag_bits': >> include/linux/mman.h:90:9: error: 'MAP_LOCKONFAULT' undeclared (first use in this function) include/linux/mman.h:90:9: note: each undeclared identifier is reported only once for each function it appears in -- In file included from mm/mmap.c:17:0: include/linux/mman.h: In function 'calc_vm_flag_bits': >> include/linux/mman.h:90:9: error: 'MAP_LOCKONFAULT' undeclared (first use in this function) include/linux/mman.h:90:9: note: each undeclared identifier is reported only once for each function it appears in mm/mmap.c: In function 'do_mmap_pgoff': >> mm/mmap.c:1317:28: error: 'MAP_LOCKONFAULT' undeclared (first use in this function) mm/mmap.c: In function 'calc_vm_flag_bits': >> include/linux/mman.h:91:1: warning: control reaches end of non-void function [-Wreturn-type] vim +/MAP_LOCKONFAULT +90 include/linux/mman.h 84 static inline unsigned long 85 calc_vm_flag_bits(unsigned long flags) 86 { 87 return _calc_vm_trans(flags, MAP_GROWSDOWN, VM_GROWSDOWN ) | 88 _calc_vm_trans(flags, MAP_DENYWRITE, VM_DENYWRITE ) | 89 _calc_vm_trans(flags, MAP_LOCKED, VM_LOCKED ) | > 90 _calc_vm_trans(flags, MAP_LOCKONFAULT,VM_LOCKONFAULT); > 91 } 92 93 unsigned long vm_commit_limit(void); 94 #endif /* _LINUX_MMAN_H */ --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation