[PATCH] KVM: MIPS/MMU: Fix spelling mistake in a variable

From: Zhang Jiaming
Date: Thu Jun 30 2022 - 09:08:51 EST


There is a spelling mistake in a variable.
Change 'writeable' to 'writable'.

Signed-off-by: Zhang Jiaming <jiaming@xxxxxxxxxxxx>
---
arch/mips/kvm/mmu.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/mips/kvm/mmu.c b/arch/mips/kvm/mmu.c
index 1bfd1b501d82..a331407b6b04 100644
--- a/arch/mips/kvm/mmu.c
+++ b/arch/mips/kvm/mmu.c
@@ -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;
--
2.25.1