[mmotm:master 264/276] mm/migrate.c:2491:23: error: passing argument 2 of 'pud_alloc' from incompatible pointer type

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

 



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: .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