* [PATCH] KVM: MIPS/MMU: Fix spelling mistake in a variable
@ 2022-06-30 13:08 Zhang Jiaming
0 siblings, 0 replies; only message in thread
From: Zhang Jiaming @ 2022-06-30 13:08 UTC (permalink / raw)
To: chenhuacai, aleksandar.qemu.devel, tsbogend
Cc: linux-mips, kvm, linux-kernel, liqiong, renyu, Zhang Jiaming
There is a spelling mistake in a variable.
Change 'writeable' to 'writable'.
Signed-off-by: Zhang Jiaming <jiaming@nfschina.com>
---
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-06-30 13:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-30 13:08 [PATCH] KVM: MIPS/MMU: Fix spelling mistake in a variable Zhang Jiaming
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.