linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [mmotm:master 264/276] mm/migrate.c:2491:23: error: passing argument 2 of 'pud_alloc' from incompatible pointer type
@ 2017-04-08  0:42 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2017-04-08  0:42 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: 1652 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-acpi-redef (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        git checkout ef10b10b090d7d9b151e774c6186daae983d9ef8
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   mm/migrate.c: In function 'migrate_vma_insert_page':
>> mm/migrate.c:2491:23: error: passing argument 2 of 'pud_alloc' from incompatible pointer type [-Werror=incompatible-pointer-types]
     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 'p4d_t * {aka struct <anonymous> *}' but argument is of type 'pgd_t * {aka struct <anonymous> *}'
    static inline pud_t *pud_alloc(struct mm_struct *mm, p4d_t *p4d,
                         ^~~~~~~~~
   cc1: some warnings being treated as errors

vim +/pud_alloc +2491 mm/migrate.c

  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);

---
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: 29701 bytes --]

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

only message in thread, other threads:[~2017-04-08  0:43 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:42 [mmotm:master 264/276] mm/migrate.c:2491:23: error: 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