tree: git://git.cmpxchg.org/linux-mmotm.git master head: def6be39d5629b938faba788330db817d19a04da commit: 1990c272782cac2f2d215067e0b053dd38fb9197 [163/317] mm/hmm: kconfig split HMM address space mirroring from device memory config: riscv-allyesconfig (attached as .config) compiler: riscv64-linux-gcc (GCC) 8.1.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout 1990c272782cac2f2d215067e0b053dd38fb9197 # save the attached .config to linux build tree GCC_VERSION=8.1.0 make.cross ARCH=riscv All errors (new ones prefixed by >>): mm/hmm.c: In function 'hmm_vma_handle_pmd': >> mm/hmm.c:537:8: error: implicit declaration of function 'pmd_pfn'; did you mean 'pte_pfn'? [-Werror=implicit-function-declaration] pfn = pmd_pfn(pmd) + pte_index(addr); ^~~~~~~ pte_pfn mm/hmm.c: In function 'hmm_vma_walk_pud': >> mm/hmm.c:795:9: error: implicit declaration of function 'pud_pfn'; did you mean 'pte_pfn'? [-Werror=implicit-function-declaration] pfn = pud_pfn(pud) + ((addr & ~PUD_MASK) >> PAGE_SHIFT); ^~~~~~~ pte_pfn mm/hmm.c: In function 'hmm_range_snapshot': mm/hmm.c:1018:19: warning: unused variable 'h' [-Wunused-variable] struct hstate *h = hstate_vma(vma); ^ cc1: some warnings being treated as errors vim +537 mm/hmm.c c49fcd0d4 Jérôme Glisse 2019-04-17 516 53f5c3f48 Jérôme Glisse 2018-04-10 517 static int hmm_vma_handle_pmd(struct mm_walk *walk, 53f5c3f48 Jérôme Glisse 2018-04-10 518 unsigned long addr, da4c3c735 Jérôme Glisse 2017-09-08 519 unsigned long end, 53f5c3f48 Jérôme Glisse 2018-04-10 520 uint64_t *pfns, 53f5c3f48 Jérôme Glisse 2018-04-10 521 pmd_t pmd) da4c3c735 Jérôme Glisse 2017-09-08 522 { 74eee180b Jérôme Glisse 2017-09-08 523 struct hmm_vma_walk *hmm_vma_walk = walk->private; f88a1e90c Jérôme Glisse 2018-04-10 524 struct hmm_range *range = hmm_vma_walk->range; 2aee09d8c Jérôme Glisse 2018-04-10 525 unsigned long pfn, npages, i; 2aee09d8c Jérôme Glisse 2018-04-10 526 bool fault, write_fault; f88a1e90c Jérôme Glisse 2018-04-10 527 uint64_t cpu_flags; da4c3c735 Jérôme Glisse 2017-09-08 528 2aee09d8c Jérôme Glisse 2018-04-10 529 npages = (end - addr) >> PAGE_SHIFT; f88a1e90c Jérôme Glisse 2018-04-10 530 cpu_flags = pmd_to_hmm_pfn_flags(range, pmd); 2aee09d8c Jérôme Glisse 2018-04-10 531 hmm_range_need_fault(hmm_vma_walk, pfns, npages, cpu_flags, 2aee09d8c Jérôme Glisse 2018-04-10 532 &fault, &write_fault); da4c3c735 Jérôme Glisse 2017-09-08 533 2aee09d8c Jérôme Glisse 2018-04-10 534 if (pmd_protnone(pmd) || fault || write_fault) 2aee09d8c Jérôme Glisse 2018-04-10 535 return hmm_vma_walk_hole_(addr, end, fault, write_fault, walk); 74eee180b Jérôme Glisse 2017-09-08 536 da4c3c735 Jérôme Glisse 2017-09-08 @537 pfn = pmd_pfn(pmd) + pte_index(addr); c49fcd0d4 Jérôme Glisse 2019-04-17 538 for (i = 0; addr < end; addr += PAGE_SIZE, i++, pfn++) { c49fcd0d4 Jérôme Glisse 2019-04-17 539 if (pmd_devmap(pmd)) { c49fcd0d4 Jérôme Glisse 2019-04-17 540 hmm_vma_walk->pgmap = get_dev_pagemap(pfn, c49fcd0d4 Jérôme Glisse 2019-04-17 541 hmm_vma_walk->pgmap); c49fcd0d4 Jérôme Glisse 2019-04-17 542 if (unlikely(!hmm_vma_walk->pgmap)) c49fcd0d4 Jérôme Glisse 2019-04-17 543 return -EBUSY; c49fcd0d4 Jérôme Glisse 2019-04-17 544 } 7cd123b65 Jérôme Glisse 2019-04-17 545 pfns[i] = hmm_device_entry_from_pfn(range, pfn) | cpu_flags; c49fcd0d4 Jérôme Glisse 2019-04-17 546 } c49fcd0d4 Jérôme Glisse 2019-04-17 547 if (hmm_vma_walk->pgmap) { c49fcd0d4 Jérôme Glisse 2019-04-17 548 put_dev_pagemap(hmm_vma_walk->pgmap); c49fcd0d4 Jérôme Glisse 2019-04-17 549 hmm_vma_walk->pgmap = NULL; c49fcd0d4 Jérôme Glisse 2019-04-17 550 } 53f5c3f48 Jérôme Glisse 2018-04-10 551 hmm_vma_walk->last = end; da4c3c735 Jérôme Glisse 2017-09-08 552 return 0; da4c3c735 Jérôme Glisse 2017-09-08 553 } da4c3c735 Jérôme Glisse 2017-09-08 554 :::::: The code at line 537 was first introduced by commit :::::: da4c3c735ea4dcc2a0b0ff0bd4803c336361b6f5 mm/hmm/mirror: helper to snapshot CPU page table :::::: TO: Jérôme Glisse <jglisse@xxxxxxxxxx> :::::: 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: application/gzip