Re: [PATCH] mm: move huge_pmd_set_accessed out of huge_memory.c
From: kbuild test robot
Date: Wed Apr 20 2016 - 15:05:43 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: mips-allyesconfig (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=mips
All errors (new ones prefixed by >>):
mm/memory.c: In function 'huge_pmd_set_accessed':
>> mm/memory.c:3304:10: error: implicit declaration of function 'pmd_mkyoung' [-Werror=implicit-function-declaration]
entry = pmd_mkyoung(orig_pmd);
^
>> mm/memory.c:3304:8: error: incompatible types when assigning to type 'pmd_t {aka struct <anonymous>}' from type 'int'
entry = pmd_mkyoung(orig_pmd);
^
cc1: some warnings being treated as errors
vim +/pmd_mkyoung +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