diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2013-08-27 09:03:30 +0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2013-08-27 09:03:30 +0400 |
commit | 3f1f4311881b330a7b5429dd101e676df191b159 (patch) | |
tree | a2533df8b157a7006c8c0cb2f89de32820135e50 /arch/powerpc/kvm/book3s_hv.c | |
parent | 5935ff4343a689fbb382d64408bc6955c6589830 (diff) | |
parent | 28e61cc466d8daace4b0f04ba2b83e0bd68f5832 (diff) | |
download | linux-3f1f4311881b330a7b5429dd101e676df191b159.tar.xz |
Merge branch 'merge' into next
Merge stuff that already went into Linus via "merge" which
are pre-reqs for subsequent patches
Diffstat (limited to 'arch/powerpc/kvm/book3s_hv.c')
-rw-r--r-- | arch/powerpc/kvm/book3s_hv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/kvm/book3s_hv.c b/arch/powerpc/kvm/book3s_hv.c index cf39bf4f3c7d..e8d51cb76752 100644 --- a/arch/powerpc/kvm/book3s_hv.c +++ b/arch/powerpc/kvm/book3s_hv.c @@ -1809,7 +1809,7 @@ static int kvmppc_hv_setup_htab_rma(struct kvm_vcpu *vcpu) rma_size <<= PAGE_SHIFT; rmls = lpcr_rmls(rma_size); err = -EINVAL; - if (rmls < 0) { + if ((long)rmls < 0) { pr_err("KVM: Can't use RMA of 0x%lx bytes\n", rma_size); goto out_srcu; } @@ -1874,7 +1874,7 @@ int kvmppc_core_init_vm(struct kvm *kvm) /* Allocate the guest's logical partition ID */ lpid = kvmppc_alloc_lpid(); - if (lpid < 0) + if ((long)lpid < 0) return -ENOMEM; kvm->arch.lpid = lpid; |