From: kbuild test robot <lkp@intel.com>
To: Jia He <jia.he@hxt-semitech.com>
Cc: kbuild-all@01.org, Johannes Weiner <hannes@cmpxchg.org>,
Andrew Morton <akpm@linux-foundation.org>,
Linux Memory Management List <linux-mm@kvack.org>
Subject: [mmotm:master 187/242] mm/memblock.c:1290:6: error: 'early_region_idx' undeclared; did you mean 'nommu_region_sem'?
Date: Wed, 22 Aug 2018 19:32:05 +0800 [thread overview]
Message-ID: <201808221902.zZGLYOTY%fengguang.wu@intel.com> (raw)
[-- 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 --]
reply other threads:[~2018-08-22 11:33 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201808221902.zZGLYOTY%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=akpm@linux-foundation.org \
--cc=hannes@cmpxchg.org \
--cc=jia.he@hxt-semitech.com \
--cc=kbuild-all@01.org \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox