lkml.org 
[lkml]   [2018]   [Feb]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v1] mm: optimize memory hotplug
Hi Pavel,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on mmotm/master]
[also build test ERROR on next-20180201]
[cannot apply to v4.15]
[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/Pavel-Tatashin/mm-optimize-memory-hotplug/20180202-125437
base: git://git.cmpxchg.org/linux-mmotm.git master
config: x86_64-randconfig-x017-201804 (attached as .config)
compiler: gcc-7 (Debian 7.2.0-12) 7.2.1 20171025
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64

All errors (new ones prefixed by >>):

mm/page_alloc.c: In function 'init_reserved_page':
>> mm/page_alloc.c:1215:44: error: 'zone' undeclared (first use in this function)
__init_single_page(pfn_to_page(pfn), pfn, zone, nid);
^~~~
mm/page_alloc.c:1215:44: note: each undeclared identifier is reported only once for each function it appears in

vim +/zone +1215 mm/page_alloc.c

1196
1197 #ifdef CONFIG_DEFERRED_STRUCT_PAGE_INIT
1198 static void __meminit init_reserved_page(unsigned long pfn)
1199 {
1200 pg_data_t *pgdat;
1201 int nid, zid;
1202
1203 if (!early_page_uninitialised(pfn))
1204 return;
1205
1206 nid = early_pfn_to_nid(pfn);
1207 pgdat = NODE_DATA(nid);
1208
1209 for (zid = 0; zid < MAX_NR_ZONES; zid++) {
1210 struct zone *zone = &pgdat->node_zones[zid];
1211
1212 if (pfn >= zone->zone_start_pfn && pfn < zone_end_pfn(zone))
1213 break;
1214 }
> 1215 __init_single_page(pfn_to_page(pfn), pfn, zone, nid);
1216 }
1217 #else
1218 static inline void init_reserved_page(unsigned long pfn)
1219 {
1220 }
1221 #endif /* CONFIG_DEFERRED_STRUCT_PAGE_INIT */
1222

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2018-02-02 07:06    [W:0.046 / U:0.732 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site