diff options
author | James Hogan <james.hogan@imgtec.com> | 2016-06-09 09:19:13 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-06-14 05:02:43 -0400 |
commit | 26ee17ff71d3def831bfa4f6851ed1ba789e24f6 (patch) | |
tree | 43ff611792ccb6c6e076f074d58b6f8f351dd69a /arch/mips/kvm/emulate.c | |
parent | 021df206354cf1e1d341b66dee19ac250c9dc37d (diff) |
MIPS: KVM: Drop unused hpa0/hpa1 args from function
The function kvm_mips_handle_mapped_seg_tlb_fault() has two completely
unused pointer arguments, hpa0 and hpa1, for which all users always pass
NULL.
Drop these two arguments and update the callers.
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Radim Krčmář <rkrcmar@redhat.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@linux-mips.org
Cc: kvm@vger.kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/mips/kvm/emulate.c')
-rw-r--r-- | arch/mips/kvm/emulate.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/mips/kvm/emulate.c b/arch/mips/kvm/emulate.c index 3baab5ec3d3b..fb77fb469776 100644 --- a/arch/mips/kvm/emulate.c +++ b/arch/mips/kvm/emulate.c | |||
@@ -1633,9 +1633,7 @@ enum emulation_result kvm_mips_emulate_cache(u32 inst, u32 *opc, | |||
1633 | * We fault an entry from the guest tlb to the | 1633 | * We fault an entry from the guest tlb to the |
1634 | * shadow host TLB | 1634 | * shadow host TLB |
1635 | */ | 1635 | */ |
1636 | kvm_mips_handle_mapped_seg_tlb_fault(vcpu, tlb, | 1636 | kvm_mips_handle_mapped_seg_tlb_fault(vcpu, tlb); |
1637 | NULL, | ||
1638 | NULL); | ||
1639 | } | 1637 | } |
1640 | } | 1638 | } |
1641 | } else { | 1639 | } else { |
@@ -2599,8 +2597,7 @@ enum emulation_result kvm_mips_handle_tlbmiss(u32 cause, | |||
2599 | * OK we have a Guest TLB entry, now inject it into the | 2597 | * OK we have a Guest TLB entry, now inject it into the |
2600 | * shadow host TLB | 2598 | * shadow host TLB |
2601 | */ | 2599 | */ |
2602 | kvm_mips_handle_mapped_seg_tlb_fault(vcpu, tlb, NULL, | 2600 | kvm_mips_handle_mapped_seg_tlb_fault(vcpu, tlb); |
2603 | NULL); | ||
2604 | } | 2601 | } |
2605 | } | 2602 | } |
2606 | 2603 | ||