KVM: MIPS/MMU: Fix spelling mistake in a variable
PATCH 1/1 KVM: MIPS/MMU: Fix spelling mistake in a variable
There is a spelling mistake in a variable.
Change 'writeable' to 'writable'.
Signed-off-by Zhang Jiaming <[email protected]>
--- arch/mips/kvm/mmu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
arch/mips/kvm/mmu.c +3 -3
@@ -594,7 +594,7 @@ static int kvm_mips_map_page(struct kvm_vcpu *vcpu, unsigned long gpa,int srcu_idx, err;kvm_pfn_t pfn;pte_t *ptep, entry, old_pte; -bool writeable; +bool writable;unsigned long prot_bits;unsigned long mmu_seq;
@@ -630,7 +630,7 @@ static int kvm_mips_map_page(struct kvm_vcpu *vcpu, unsigned long gpa,smp_rmb ();/* Slow path - ask KVM core whether we can access this GPA */ - pfn =gfn_to_pfn_prot (kvm, gfn, write_fault, &writeable); + pfn =gfn_to_pfn_prot (kvm, gfn, write_fault, &writable);if (is_error_noslot_pfn (pfn)) { err = -EFAULT ; goto out;
@@ -654,7 +654,7 @@ static int kvm_mips_map_page(struct kvm_vcpu *vcpu, unsigned long gpa,/* Set up the PTE */ prot_bits = _PAGE_PRESENT | __READABLE | _page_cachable_default; -if (writeable) { +if (writable) { prot_bits |= _PAGE_WRITE;if (write_fault) { prot_bits |= __WRITEABLE;
Signature · 1 line
2.25.1