[mmotm:master 187/242] mm/memblock.c:1290:6: error: 'early_region_idx' undeclared; did you mean 'early_pfn_to_nid'?

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

 



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: .config.gz
Description: application/gzip


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux