* [mmotm:master 264/276] mm/migrate.c:2491:23: warning: passing argument 2 of 'pud_alloc' from incompatible pointer type
@ 2017-04-08 0:43 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2017-04-08 0:43 UTC (permalink / raw)
To: Jérôme Glisse
Cc: kbuild-all, Johannes Weiner, Andrew Morton, Linux Memory Management List
[-- Attachment #1: Type: text/plain, Size: 1920 bytes --]
tree: git://git.cmpxchg.org/linux-mmotm.git master
head: 5b220005fda0593464fc4549eea586e597bf783c
commit: ef10b10b090d7d9b151e774c6186daae983d9ef8 [264/276] mm/migrate: allow migrate_vma() to alloc new page on empty entry
config: x86_64-randconfig-i0-201714 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
reproduce:
git checkout ef10b10b090d7d9b151e774c6186daae983d9ef8
# save the attached .config to linux build tree
make ARCH=x86_64
All warnings (new ones prefixed by >>):
mm/migrate.c: In function 'migrate_vma_insert_page':
>> mm/migrate.c:2491:23: warning: passing argument 2 of 'pud_alloc' from incompatible pointer type
pudp = pud_alloc(mm, pgdp, addr);
^
In file included from include/linux/migrate.h:4:0,
from mm/migrate.c:15:
include/linux/mm.h:1677:22: note: expected 'struct p4d_t *' but argument is of type 'struct pgd_t *'
static inline pud_t *pud_alloc(struct mm_struct *mm, p4d_t *p4d,
^
vim +/pud_alloc +2491 mm/migrate.c
2475 {
2476 struct vm_area_struct *vma = migrate->vma;
2477 struct mm_struct *mm = vma->vm_mm;
2478 struct mem_cgroup *memcg;
2479 spinlock_t *ptl;
2480 pgd_t *pgdp;
2481 pud_t *pudp;
2482 pmd_t *pmdp;
2483 pte_t *ptep;
2484 pte_t entry;
2485
2486 /* Only allow populating anonymous memory */
2487 if (!vma_is_anonymous(vma))
2488 goto abort;
2489
2490 pgdp = pgd_offset(mm, addr);
> 2491 pudp = pud_alloc(mm, pgdp, addr);
2492 if (!pudp)
2493 goto abort;
2494 pmdp = pmd_alloc(mm, pudp, addr);
2495 if (!pmdp)
2496 goto abort;
2497
2498 if (pmd_trans_unstable(pmdp) || pmd_devmap(*pmdp))
2499 goto abort;
---
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: 23172 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-04-08 0:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-08 0:43 [mmotm:master 264/276] mm/migrate.c:2491:23: warning: passing argument 2 of 'pud_alloc' from incompatible pointer type 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