Re: [PATCH v3] sparc64: Reduce TLB flushes during hugepte changes

From: kbuild test robot
Date: Tue Mar 29 2016 - 17:27:11 EST


Hi Nitin,

[auto build test ERROR on sparc/master]
[also build test ERROR on v4.6-rc1 next-20160329]
[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/Nitin-Gupta/sparc64-Reduce-TLB-flushes-during-hugepte-changes/20160330-051327
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc.git master
config: sparc64-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=sparc64

All errors (new ones prefixed by >>):

arch/sparc/mm/tlb.c: In function 'tlb_batch_pmd_scan':
>> arch/sparc/mm/tlb.c:158:4: error: too few arguments to function 'tlb_batch_add_one'
tlb_batch_add_one(mm, vaddr, exec);
^
arch/sparc/mm/tlb.c:69:13: note: declared here
static void tlb_batch_add_one(struct mm_struct *mm, unsigned long vaddr,
^
arch/sparc/mm/tlb.c: In function 'set_pmd_at':
arch/sparc/mm/tlb.c:198:4: error: too few arguments to function 'tlb_batch_add_one'
tlb_batch_add_one(mm, addr, exec);
^
arch/sparc/mm/tlb.c:69:13: note: declared here
static void tlb_batch_add_one(struct mm_struct *mm, unsigned long vaddr,
^
arch/sparc/mm/tlb.c:199:4: error: too few arguments to function 'tlb_batch_add_one'
tlb_batch_add_one(mm, addr + REAL_HPAGE_SIZE, exec);
^
arch/sparc/mm/tlb.c:69:13: note: declared here
static void tlb_batch_add_one(struct mm_struct *mm, unsigned long vaddr,
^

vim +/tlb_batch_add_one +158 arch/sparc/mm/tlb.c

9e695d2e David Miller 2012-10-08 152 pte = pte_offset_map(&pmd, vaddr);
9e695d2e David Miller 2012-10-08 153 end = vaddr + HPAGE_SIZE;
9e695d2e David Miller 2012-10-08 154 while (vaddr < end) {
5b1e94fa David S. Miller 2014-04-20 155 if (pte_val(*pte) & _PAGE_VALID) {
5b1e94fa David S. Miller 2014-04-20 156 bool exec = pte_exec(*pte);
5b1e94fa David S. Miller 2014-04-20 157
9e695d2e David Miller 2012-10-08 @158 tlb_batch_add_one(mm, vaddr, exec);
5b1e94fa David S. Miller 2014-04-20 159 }
9e695d2e David Miller 2012-10-08 160 pte++;
9e695d2e David Miller 2012-10-08 161 vaddr += PAGE_SIZE;

:::::: The code at line 158 was first introduced by commit
:::::: 9e695d2ecc8451cc2c1603d60b5c8e7f5581923a sparc64: Support transparent huge pages.

:::::: TO: David Miller <davem@xxxxxxxxxxxxx>
:::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>

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

Attachment: .config.gz
Description: Binary data