[rgushchin:vmalloc.4 163/322] mm/hmm.c:537:23: error: implicit declaration of function 'pte_index'; did you mean 'page_index'?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://github.com/rgushchin/linux.git vmalloc.4
head:   4e61708128ac8721c742bc716419fd773a54dab7
commit: 4226ed555bfc9b58a6a1f35ea2e9a5530e0c4b06 [163/322] mm/hmm: kconfig split HMM address space mirroring from device memory
config: alpha-allyesconfig (attached as .config)
compiler: alpha-linux-gnu-gcc (Debian 7.2.0-11) 7.2.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 4226ed555bfc9b58a6a1f35ea2e9a5530e0c4b06
        # save the attached .config to linux build tree
        GCC_VERSION=7.2.0 make.cross ARCH=alpha 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@xxxxxxxxx>


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:537:23: error: implicit declaration of function 'pte_index'; did you mean 'page_index'? [-Werror=implicit-function-declaration]
     pfn = pmd_pfn(pmd) + pte_index(addr);
                          ^~~~~~~~~
                          page_index
   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

ce43d187 Jérôme Glisse 2019-04-17  516  
53f5c3f4 Jérôme Glisse 2018-04-10  517  static int hmm_vma_handle_pmd(struct mm_walk *walk,
53f5c3f4 Jérôme Glisse 2018-04-10  518  			      unsigned long addr,
da4c3c73 Jérôme Glisse 2017-09-08  519  			      unsigned long end,
53f5c3f4 Jérôme Glisse 2018-04-10  520  			      uint64_t *pfns,
53f5c3f4 Jérôme Glisse 2018-04-10  521  			      pmd_t pmd)
da4c3c73 Jérôme Glisse 2017-09-08  522  {
74eee180 Jérôme Glisse 2017-09-08  523  	struct hmm_vma_walk *hmm_vma_walk = walk->private;
f88a1e90 Jérôme Glisse 2018-04-10  524  	struct hmm_range *range = hmm_vma_walk->range;
2aee09d8 Jérôme Glisse 2018-04-10  525  	unsigned long pfn, npages, i;
2aee09d8 Jérôme Glisse 2018-04-10  526  	bool fault, write_fault;
f88a1e90 Jérôme Glisse 2018-04-10  527  	uint64_t cpu_flags;
da4c3c73 Jérôme Glisse 2017-09-08  528  
2aee09d8 Jérôme Glisse 2018-04-10  529  	npages = (end - addr) >> PAGE_SHIFT;
f88a1e90 Jérôme Glisse 2018-04-10  530  	cpu_flags = pmd_to_hmm_pfn_flags(range, pmd);
2aee09d8 Jérôme Glisse 2018-04-10  531  	hmm_range_need_fault(hmm_vma_walk, pfns, npages, cpu_flags,
2aee09d8 Jérôme Glisse 2018-04-10  532  			     &fault, &write_fault);
da4c3c73 Jérôme Glisse 2017-09-08  533  
2aee09d8 Jérôme Glisse 2018-04-10  534  	if (pmd_protnone(pmd) || fault || write_fault)
2aee09d8 Jérôme Glisse 2018-04-10  535  		return hmm_vma_walk_hole_(addr, end, fault, write_fault, walk);
74eee180 Jérôme Glisse 2017-09-08  536  
da4c3c73 Jérôme Glisse 2017-09-08 @537  	pfn = pmd_pfn(pmd) + pte_index(addr);
ce43d187 Jérôme Glisse 2019-04-17  538  	for (i = 0; addr < end; addr += PAGE_SIZE, i++, pfn++) {
ce43d187 Jérôme Glisse 2019-04-17  539  		if (pmd_devmap(pmd)) {
ce43d187 Jérôme Glisse 2019-04-17  540  			hmm_vma_walk->pgmap = get_dev_pagemap(pfn,
ce43d187 Jérôme Glisse 2019-04-17  541  					      hmm_vma_walk->pgmap);
ce43d187 Jérôme Glisse 2019-04-17  542  			if (unlikely(!hmm_vma_walk->pgmap))
ce43d187 Jérôme Glisse 2019-04-17  543  				return -EBUSY;
ce43d187 Jérôme Glisse 2019-04-17  544  		}
a702b640 Jérôme Glisse 2019-04-17  545  		pfns[i] = hmm_device_entry_from_pfn(range, pfn) | cpu_flags;
ce43d187 Jérôme Glisse 2019-04-17  546  	}
ce43d187 Jérôme Glisse 2019-04-17  547  	if (hmm_vma_walk->pgmap) {
ce43d187 Jérôme Glisse 2019-04-17  548  		put_dev_pagemap(hmm_vma_walk->pgmap);
ce43d187 Jérôme Glisse 2019-04-17  549  		hmm_vma_walk->pgmap = NULL;
ce43d187 Jérôme Glisse 2019-04-17  550  	}
53f5c3f4 Jérôme Glisse 2018-04-10  551  	hmm_vma_walk->last = end;
da4c3c73 Jérôme Glisse 2017-09-08  552  	return 0;
da4c3c73 Jérôme Glisse 2017-09-08  553  }
da4c3c73 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


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux