]> Pileus Git - ~andy/linux/commit
KVM: PPC: book3s: fix build error caused by gfn_to_hva_memslot()
authorGavin Shan <shangw@linux.vnet.ibm.com>
Fri, 24 Aug 2012 08:50:28 +0000 (16:50 +0800)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 27 Aug 2012 19:44:20 +0000 (16:44 -0300)
commit66a03505a7fcc70187319ef2318832f4d3c451a6
tree5d6b87ef9094fb11f9825b4702b29472496dafc5
parentc78aa4c4b94b5b148be576a9f1570e31fe282b46
KVM: PPC: book3s: fix build error caused by gfn_to_hva_memslot()

The build error was caused by that builtin functions are calling
the functions implemented in modules. This error was introduced by
commit 4d8b81abc4 ("KVM: introduce readonly memslot").

The patch fixes the build error by moving function __gfn_to_hva_memslot()
from kvm_main.c to kvm_host.h and making that "inline" so that the
builtin function (kvmppc_h_enter) can use that.

Acked-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Gavin Shan <shangw@linux.vnet.ibm.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/powerpc/kvm/book3s_hv_rm_mmu.c
include/linux/kvm_host.h
virt/kvm/kvm_main.c