From: kbuild test robot <fengguang.wu@intel.com>
To: "Jérôme Glisse" <jglisse@redhat.com>
Cc: kbuild-all@01.org, Johannes Weiner <hannes@cmpxchg.org>,
Evgeny Baskakov <ebaskakov@nvidia.com>,
John Hubbard <jhubbard@nvidia.com>,
Mark Hairgrove <mhairgrove@nvidia.com>,
Sherry Cheung <SCheung@nvidia.com>,
Subhash Gutti <sgutti@nvidia.com>,
Andrew Morton <akpm@linux-foundation.org>,
Linux Memory Management List <linux-mm@kvack.org>
Subject: [mmotm:master 261/276] mm/hmm.c:303:53: error: macro "pte_index" requires 2 arguments, but only 1 given
Date: Sat, 8 Apr 2017 13:50:56 +0800 [thread overview]
Message-ID: <201704081353.oHnU641g%fengguang.wu@intel.com> (raw)
[-- 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 --]
reply other threads:[~2017-04-08 5:51 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201704081353.oHnU641g%fengguang.wu@intel.com \
--to=fengguang.wu@intel.com \
--cc=SCheung@nvidia.com \
--cc=akpm@linux-foundation.org \
--cc=ebaskakov@nvidia.com \
--cc=hannes@cmpxchg.org \
--cc=jglisse@redhat.com \
--cc=jhubbard@nvidia.com \
--cc=kbuild-all@01.org \
--cc=linux-mm@kvack.org \
--cc=mhairgrove@nvidia.com \
--cc=sgutti@nvidia.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox