linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [mmotm:master 187/242] mm/memblock.c:1290:6: error: 'early_region_idx' undeclared; did you mean 'early_pfn_to_nid'?
@ 2018-08-22 11:37 kbuild test robot
  2018-08-22 16:12 ` Andrew Morton
  0 siblings, 1 reply; 2+ messages in thread
From: kbuild test robot @ 2018-08-22 11:37 UTC (permalink / raw)
  To: Jia He
  Cc: kbuild-all, Johannes Weiner, Andrew Morton,
	Linux Memory Management List

[-- Attachment #1: Type: text/plain, Size: 2207 bytes --]

tree:   git://git.cmpxchg.org/linux-mmotm.git master
head:   10b78d76f1897885d7753586ecd113e9d6728c5d
commit: be2e6e87ac5e7f8f30c442bb1a042266e1ab6fcd [187/242] mm/memblock: introduce pfn_valid_region()
config: arm-omap2plus_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout be2e6e87ac5e7f8f30c442bb1a042266e1ab6fcd
        # save the attached .config to linux build tree
        GCC_VERSION=7.2.0 make.cross ARCH=arm 

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

   mm/memblock.c: In function 'pfn_valid_region':
>> mm/memblock.c:1290:6: error: 'early_region_idx' undeclared (first use in this function); did you mean 'early_pfn_to_nid'?
     if (early_region_idx != -1) {
         ^~~~~~~~~~~~~~~~
         early_pfn_to_nid
   mm/memblock.c:1290:6: note: each undeclared identifier is reported only once for each function it appears in
>> mm/memblock.c:1305:1: warning: control reaches end of non-void function [-Wreturn-type]
    }
    ^

vim +1290 mm/memblock.c

  1283	
  1284	int pfn_valid_region(ulong pfn)
  1285	{
  1286		ulong start_pfn, end_pfn;
  1287		struct memblock_type *type = &memblock.memory;
  1288		struct memblock_region *regions = type->regions;
  1289	
> 1290		if (early_region_idx != -1) {
  1291			start_pfn = PFN_DOWN(regions[early_region_idx].base);
  1292			end_pfn = PFN_DOWN(regions[early_region_idx].base +
  1293						regions[early_region_idx].size);
  1294	
  1295			if (pfn >= start_pfn && pfn < end_pfn)
  1296				return !memblock_is_nomap(
  1297						&regions[early_region_idx]);
  1298		}
  1299	
  1300		early_region_idx = memblock_search_pfn_regions(pfn);
  1301		if (early_region_idx == -1)
  1302			return false;
  1303	
  1304		return !memblock_is_nomap(&regions[early_region_idx]);
> 1305	}
  1306	EXPORT_SYMBOL(pfn_valid_region);
  1307	#endif /*CONFIG_HAVE_MEMBLOCK_PFN_VALID*/
  1308	

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 34313 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-08-22 16:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-22 11:37 [mmotm:master 187/242] mm/memblock.c:1290:6: error: 'early_region_idx' undeclared; did you mean 'early_pfn_to_nid'? kbuild test robot
2018-08-22 16:12 ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).