From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752769AbdLCXQl (ORCPT ); Sun, 3 Dec 2017 18:16:41 -0500 Received: from ozlabs.org ([103.22.144.67]:35735 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752233AbdLCXQi (ORCPT ); Sun, 3 Dec 2017 18:16:38 -0500 Date: Mon, 4 Dec 2017 10:16:36 +1100 From: Stephen Rothwell To: Al Viro Cc: Linux-Next Mailing List , Linux Kernel Mailing List Subject: linux-next: build failure after merge of the vfs tree Message-ID: <20171204101636.15953396@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by nfs id vB3NGjsA001878 Hi Al, After merging the vfs tree, today's linux-next build (powerpc ppc64_defconfig) failed like this: 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) npages = get_user_pages_unlocked(start, 1, &page, flags); ^ Caused by commit eeb7c213c804 ("kvm: switch get_user_page_nowait() to get_user_pages_unlocked()") I have applied the following fix patch for today: >>From e9cc05c8ba9b9f19c62b74e81e4beb67ec9fc09e Mon Sep 17 00:00:00 2001 From: Stephen Rothwell Date: Mon, 4 Dec 2017 10:13:38 +1100 Subject: [PATCH] kvm: fix for "switch get_user_page_nowait() to get_user_pages_unlocked()" Signed-off-by: Stephen Rothwell --- virt/kvm/kvm_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 4f0f0045e634..7b4d46432c85 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -1376,7 +1376,7 @@ static int hva_to_pfn_slow(unsigned long addr, bool *async, bool write_fault, if (async) flags |= FOLL_NOWAIT; - npages = get_user_pages_unlocked(start, 1, &page, flags); + npages = get_user_pages_unlocked(addr, 1, &page, flags); if (npages != 1) return npages; -- 2.15.0 -- Cheers, Stephen Rothwell