Re: [PATCH] mm: move huge_pmd_set_accessed out of huge_memory.c

From: kbuild test robot
Date: Wed Apr 20 2016 - 15:21:48 EST


Hi,

[auto build test ERROR on v4.6-rc4]
[also build test ERROR on next-20160420]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]

url: https://github.com/0day-ci/linux/commits/Yang-Shi/mm-move-huge_pmd_set_accessed-out-of-huge_memory-c/20160421-025318
config: avr32-atngw100_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
# save the attached .config to linux build tree
make.cross ARCH=avr32

All errors (new ones prefixed by >>):

mm/memory.c: In function 'huge_pmd_set_accessed':
mm/memory.c:3304: error: implicit declaration of function 'pmd_mkyoung'
>> mm/memory.c:3304: error: incompatible types in assignment
mm/memory.c:3307: error: implicit declaration of function 'update_mmu_cache_pmd'

vim +3304 mm/memory.c

3298 unsigned long haddr;
3299
3300 ptl = pmd_lock(mm, pmd);
3301 if (unlikely(!pmd_same(*pmd, orig_pmd)))
3302 goto unlock;
3303
> 3304 entry = pmd_mkyoung(orig_pmd);
3305 haddr = address & HPAGE_PMD_MASK;
3306 if (pmdp_set_access_flags(vma, haddr, pmd, entry, dirty))
3307 update_mmu_cache_pmd(vma, address, pmd);

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: Binary data