tree: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 14a6f1989dae9445d4532941bdd6bbad84f4c8da commit: 3b242c66ccbd60cf47ab0e8992119d9617548c23 x86: mm: enable deferred struct page initialisation on x86-64 date: 3 days ago config: x86_64-randconfig-x006-201527 (attached as .config) reproduce: git checkout 3b242c66ccbd60cf47ab0e8992119d9617548c23 # save the attached .config to linux build tree make ARCH=x86_64 All warnings (new ones prefixed by >>): mm/page_alloc.c: In function 'early_page_uninitialised': >> mm/page_alloc.c:247:6: warning: unused variable 'nid' [-Wunused-variable] int nid = early_pfn_to_nid(pfn); ^ vim +/nid +247 mm/page_alloc.c 62bc62a8 Christoph Lameter 2009-06-16 231 int nr_online_nodes __read_mostly = 1; 418508c1 Miklos Szeredi 2007-05-23 232 EXPORT_SYMBOL(nr_node_ids); 62bc62a8 Christoph Lameter 2009-06-16 233 EXPORT_SYMBOL(nr_online_nodes); 418508c1 Miklos Szeredi 2007-05-23 234 #endif 418508c1 Miklos Szeredi 2007-05-23 235 9ef9acb0 Mel Gorman 2007-10-16 236 int page_group_by_mobility_disabled __read_mostly; 9ef9acb0 Mel Gorman 2007-10-16 237 3a80a7fa Mel Gorman 2015-06-30 238 #ifdef CONFIG_DEFERRED_STRUCT_PAGE_INIT 3a80a7fa Mel Gorman 2015-06-30 239 static inline void reset_deferred_meminit(pg_data_t *pgdat) 3a80a7fa Mel Gorman 2015-06-30 240 { 3a80a7fa Mel Gorman 2015-06-30 241 pgdat->first_deferred_pfn = ULONG_MAX; 3a80a7fa Mel Gorman 2015-06-30 242 } 3a80a7fa Mel Gorman 2015-06-30 243 3a80a7fa Mel Gorman 2015-06-30 244 /* Returns true if the struct page for the pfn is uninitialised */ 3a80a7fa Mel Gorman 2015-06-30 245 static inline bool __defermem_init early_page_uninitialised(unsigned long pfn) 3a80a7fa Mel Gorman 2015-06-30 246 { 3a80a7fa Mel Gorman 2015-06-30 @247 int nid = early_pfn_to_nid(pfn); 3a80a7fa Mel Gorman 2015-06-30 248 3a80a7fa Mel Gorman 2015-06-30 249 if (pfn >= NODE_DATA(nid)->first_deferred_pfn) 3a80a7fa Mel Gorman 2015-06-30 250 return true; 3a80a7fa Mel Gorman 2015-06-30 251 3a80a7fa Mel Gorman 2015-06-30 252 return false; 3a80a7fa Mel Gorman 2015-06-30 253 } 3a80a7fa Mel Gorman 2015-06-30 254 7e18adb4 Mel Gorman 2015-06-30 255 static inline bool early_page_nid_uninitialised(unsigned long pfn, int nid) :::::: The code at line 247 was first introduced by commit :::::: 3a80a7fa7989fbb6aa56bb6ad31811b62cf99e60 mm: meminit: initialise a subset of struct pages if CONFIG_DEFERRED_STRUCT_PAGE_INIT is set :::::: TO: Mel Gorman :::::: CC: Linus Torvalds --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation