linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [mmotm:master 261/276] mm/hmm.c:303:53: error: macro "pte_index" requires 2 arguments, but only 1 given
@ 2017-04-08  5:50 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2017-04-08  5:50 UTC (permalink / raw)
  To: Jérôme Glisse
  Cc: kbuild-all, Johannes Weiner, Evgeny Baskakov, John Hubbard,
	Mark Hairgrove, Sherry Cheung, Subhash Gutti, Andrew Morton,
	Linux Memory Management List

[-- Attachment #1: Type: text/plain, Size: 1815 bytes --]

tree:   git://git.cmpxchg.org/linux-mmotm.git master
head:   5b220005fda0593464fc4549eea586e597bf783c
commit: 2c0105e7013870a0ce04fb21d68293fdba7c3459 [261/276] mm/hmm/mirror: helper to snapshot CPU page table
config: sparc64-allmodconfig (attached as .config)
compiler: sparc64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 2c0105e7013870a0ce04fb21d68293fdba7c3459
        # save the attached .config to linux build tree
        make.cross ARCH=sparc64 

All errors (new ones prefixed by >>):

   mm/hmm.c: In function 'hmm_vma_walk_pmd':
>> mm/hmm.c:303:53: error: macro "pte_index" requires 2 arguments, but only 1 given
       unsigned long pfn = pmd_pfn(pmd) + pte_index(addr);
                                                        ^
>> mm/hmm.c:303:39: error: 'pte_index' undeclared (first use in this function)
       unsigned long pfn = pmd_pfn(pmd) + pte_index(addr);
                                          ^~~~~~~~~
   mm/hmm.c:303:39: note: each undeclared identifier is reported only once for each function it appears in

vim +/pte_index +303 mm/hmm.c

   297				return hmm_vma_walk_hole(start, end, walk);
   298	
   299			if (pmd_bad(pmd) || pmd_protnone(pmd))
   300				return hmm_vma_walk_clear(start, end, walk);
   301	
   302			if (pmd_trans_huge(pmd) || pmd_devmap(pmd)) {
 > 303				unsigned long pfn = pmd_pfn(pmd) + pte_index(addr);
   304	
   305				flag |= pmd_write(pmd) ? HMM_PFN_WRITE : 0;
   306				for (; addr < end; addr += PAGE_SIZE, i++, pfn++)

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 51071 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-04-08  5:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-08  5:50 [mmotm:master 261/276] mm/hmm.c:303:53: error: macro "pte_index" requires 2 arguments, but only 1 given kbuild test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox