Re: [PATCH 1/2] mm, thp: introduce dedicated transparent huge page allocation interfaces

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

 



Hi Changbin,

[auto build test ERROR on mmotm/master]
[also build test ERROR on v4.14-rc5 next-20171017]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/changbin-du-intel-com/mm-thp-introduce-dedicated-transparent-huge-page-allocation-interfaces/20171018-230128
base:   git://git.cmpxchg.org/linux-mmotm.git master
config: i386-randconfig-x001-201742 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All error/warnings (new ones prefixed by >>):

   In file included from include/linux/balloon_compaction.h:48:0,
                    from drivers/virtio/virtio_balloon.c:29:
   include/linux/migrate.h: In function 'new_page_nodemask':
>> include/linux/migrate.h:49:10: error: implicit declaration of function 'alloc_transhuge_page_nodemask' [-Werror=implicit-function-declaration]
      return alloc_transhuge_page_nodemask(gfp_mask | GFP_TRANSHUGE,
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/migrate.h:49:10: warning: return makes pointer from integer without a cast [-Wint-conversion]
      return alloc_transhuge_page_nodemask(gfp_mask | GFP_TRANSHUGE,
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        preferred_nid, nodemask);
        ~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/alloc_transhuge_page_nodemask +49 include/linux/migrate.h

    33	
    34	static inline struct page *new_page_nodemask(struct page *page,
    35					int preferred_nid, nodemask_t *nodemask)
    36	{
    37		gfp_t gfp_mask = GFP_USER | __GFP_MOVABLE | __GFP_RETRY_MAYFAIL;
    38		unsigned int order = 0;
    39		struct page *new_page = NULL;
    40	
    41		if (PageHuge(page))
    42			return alloc_huge_page_nodemask(page_hstate(compound_head(page)),
    43					preferred_nid, nodemask);
    44	
    45		if (PageHighMem(page) || (zone_idx(page_zone(page)) == ZONE_MOVABLE))
    46			gfp_mask |= __GFP_HIGHMEM;
    47	
    48		if (thp_migration_supported() && PageTransHuge(page))
  > 49			return alloc_transhuge_page_nodemask(gfp_mask | GFP_TRANSHUGE,
    50					preferred_nid, nodemask);
    51		else
    52			return __alloc_pages_nodemask(gfp_mask, order,
    53					preferred_nid, nodemask);
    54	
    55		return new_page;
    56	}
    57	

---
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]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux