* [mmotm:master 187/242] mm/memblock.c:1290:6: error: 'early_region_idx' undeclared; did you mean 'nommu_region_sem'?
@ 2018-08-22 11:32 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2018-08-22 11:32 UTC (permalink / raw)
To: Jia He
Cc: kbuild-all, Johannes Weiner, Andrew Morton, Linux Memory Management List
[-- Attachment #1: Type: text/plain, Size: 2191 bytes --]
tree: git://git.cmpxchg.org/linux-mmotm.git master
head: 10b78d76f1897885d7753586ecd113e9d6728c5d
commit: be2e6e87ac5e7f8f30c442bb1a042266e1ab6fcd [187/242] mm/memblock: introduce pfn_valid_region()
config: arm-allnoconfig (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 errors (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 'nommu_region_sem'?
if (early_region_idx != -1) {
^~~~~~~~~~~~~~~~
nommu_region_sem
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 ®ions[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(®ions[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: 5549 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-08-22 11:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-22 11:32 [mmotm:master 187/242] mm/memblock.c:1290:6: error: 'early_region_idx' undeclared; did you mean 'nommu_region_sem'? kbuild test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox