summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kvm/book3s_64_vio.c
diff options
context:
space:
mode:
authorSouptick Joarder <jrdr.linux@gmail.com>2018-05-10 20:27:19 +0200
committerPaul Mackerras <paulus@ozlabs.org>2018-05-17 08:41:51 +0200
commit16d5c39d54031afe8a5663b4638030d9fc38ba19 (patch)
tree01ad54622aeffa0f924e5ee50a1930d3fe1a6a2c /arch/powerpc/kvm/book3s_64_vio.c
parentKVM: PPC: Book3S: Check KVM_CREATE_SPAPR_TCE_64 parameters (diff)
downloadlinux-16d5c39d54031afe8a5663b4638030d9fc38ba19.tar.xz
linux-16d5c39d54031afe8a5663b4638030d9fc38ba19.zip
KVM: PPC: Book3S: Change return type to vm_fault_t
Use new return type vm_fault_t for fault handler in struct vm_operations_struct. For now, this is just documenting that the function returns a VM_FAULT value rather than an errno. Once all instances are converted, vm_fault_t will become a distinct type. commit 1c8f422059ae ("mm: change return type to vm_fault_t") Signed-off-by: Souptick Joarder <jrdr.linux@gmail.com> Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Diffstat (limited to 'arch/powerpc/kvm/book3s_64_vio.c')
-rw-r--r--arch/powerpc/kvm/book3s_64_vio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kvm/book3s_64_vio.c b/arch/powerpc/kvm/book3s_64_vio.c
index 80ead383d8ee..d066e37551ec 100644
--- a/arch/powerpc/kvm/book3s_64_vio.c
+++ b/arch/powerpc/kvm/book3s_64_vio.c
@@ -235,7 +235,7 @@ static void release_spapr_tce_table(struct rcu_head *head)
kfree(stt);
}
-static int kvm_spapr_tce_fault(struct vm_fault *vmf)
+static vm_fault_t kvm_spapr_tce_fault(struct vm_fault *vmf)
{
struct kvmppc_spapr_tce_table *stt = vmf->vma->vm_file->private_data;
struct page *page;