tree: https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git for-next head: 5add1ca7c8323326fd1731ed964e228c3679f17c commit: eeb7c213c804481064b0cd3b24b94fcab678e8c6 [54/82] kvm: switch get_user_page_nowait() to get_user_pages_unlocked() config: powerpc-defconfig (attached as .config) compiler: powerpc64-linux-gnu-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 eeb7c213c804481064b0cd3b24b94fcab678e8c6 # save the attached .config to linux build tree make.cross ARCH=powerpc All errors (new ones prefixed by >>): arch/powerpc/kvm/../../../virt/kvm/kvm_main.c: In function 'hva_to_pfn_slow': >> arch/powerpc/kvm/../../../virt/kvm/kvm_main.c:1379:35: error: 'start' undeclared (first use in this function); did you mean 'stat'? npages = get_user_pages_unlocked(start, 1, &page, flags); ^~~~~ stat arch/powerpc/kvm/../../../virt/kvm/kvm_main.c:1379:35: note: each undeclared identifier is reported only once for each function it appears in vim +1379 arch/powerpc/kvm/../../../virt/kvm/kvm_main.c 1357 1358 /* 1359 * The slow path to get the pfn of the specified host virtual address, 1360 * 1 indicates success, -errno is returned if error is detected. 1361 */ 1362 static int hva_to_pfn_slow(unsigned long addr, bool *async, bool write_fault, 1363 bool *writable, kvm_pfn_t *pfn) 1364 { 1365 unsigned int flags = FOLL_HWPOISON; 1366 struct page *page; 1367 int npages = 0; 1368 1369 might_sleep(); 1370 1371 if (writable) 1372 *writable = write_fault; 1373 1374 if (write_fault) 1375 flags |= FOLL_WRITE; 1376 if (async) 1377 flags |= FOLL_NOWAIT; 1378 > 1379 npages = get_user_pages_unlocked(start, 1, &page, flags); 1380 if (npages != 1) 1381 return npages; 1382 1383 /* map read fault as writable if possible */ 1384 if (unlikely(!write_fault) && writable) { 1385 struct page *wpage; 1386 1387 if (__get_user_pages_fast(addr, 1, 1, &wpage) == 1) { 1388 *writable = true; 1389 put_page(page); 1390 page = wpage; 1391 } 1392 } 1393 *pfn = page_to_pfn(page); 1394 return npages; 1395 } 1396 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip