Re: [HMM 07/15] mm/ZONE_DEVICE: new type of ZONE_DEVICE for unaddressable memory v2

From: kbuild test robot
Date: Tue May 23 2017 - 04:37:45 EST


Hi Jérôme,

[auto build test ERROR on mmotm/master]
[also build test ERROR on next-20170523]
[cannot apply to v4.12-rc2]
[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/J-r-me-Glisse/HMM-Heterogeneous-Memory-Management-v22/20170523-153623
base: git://git.cmpxchg.org/linux-mmotm.git master
config: x86_64-acpi-redef (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=x86_64

All errors (new ones prefixed by >>):

In file included from include/linux/suspend.h:8:0,
from arch/x86/kernel/asm-offsets.c:12:
include/linux/mm.h: In function 'is_device_private_page':
>> include/linux/mm.h:796:15: error: dereferencing pointer to incomplete type 'struct dev_pagemap'
(page->pgmap->type == MEMORY_DEVICE_PRIVATE));
^~
>> include/linux/mm.h:796:25: error: 'MEMORY_DEVICE_PRIVATE' undeclared (first use in this function)
(page->pgmap->type == MEMORY_DEVICE_PRIVATE));
^~~~~~~~~~~~~~~~~~~~~
include/linux/mm.h:796:25: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [arch/x86/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [sub-make] Error 2

vim +796 include/linux/mm.h

790 }
791
792 static inline bool is_device_private_page(const struct page *page)
793 {
794 /* See MEMORY_DEVICE_PRIVATE in include/linux/memory_hotplug.h */
795 return ((page_zonenum(page) == ZONE_DEVICE) &&
> 796 (page->pgmap->type == MEMORY_DEVICE_PRIVATE));
797 }
798 #else
799 static inline bool is_zone_device_page(const struct page *page)

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: application/gzip