[PATCH] Fix typos and mark a local function as static in x86.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch fix typos in arch/x86/kvm/x86.c and mark the local function
emulator_write_emulated() as static.

Signed-off-by: Jidong Xiao <jidong.xiao@xxxxxxxxx>
---
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index 20316c6..5148562 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -4267,14 +4267,14 @@ static int write_exit_mmio(struct kvm_vcpu
*vcpu, gpa_t gpa,
        return X86EMUL_CONTINUE;
 }

-static const struct read_write_emulator_ops read_emultor = {
+static const struct read_write_emulator_ops read_emulator = {
        .read_write_prepare = read_prepare,
        .read_write_emulate = read_emulate,
        .read_write_mmio = vcpu_mmio_read,
        .read_write_exit_mmio = read_exit_mmio,
 };

-static const struct read_write_emulator_ops write_emultor = {
+static const struct read_write_emulator_ops write_emulator = {
        .read_write_emulate = write_emulate,
        .read_write_mmio = write_mmio,
        .read_write_exit_mmio = write_exit_mmio,
@@ -4382,17 +4382,17 @@ static int emulator_read_emulated(struct
x86_emulate_ctxt *ctxt,
                                  struct x86_exception *exception)
 {
        return emulator_read_write(ctxt, addr, val, bytes,
-                                  exception, &read_emultor);
+                                  exception, &read_emulator);
 }

-int emulator_write_emulated(struct x86_emulate_ctxt *ctxt,
+static int emulator_write_emulated(struct x86_emulate_ctxt *ctxt,
                            unsigned long addr,
                            const void *val,
                            unsigned int bytes,
                            struct x86_exception *exception)
 {
        return emulator_read_write(ctxt, addr, (void *)val, bytes,
-                                  exception, &write_emultor);
+                                  exception, &write_emulator);
 }

 #define CMPXCHG_TYPE(t, ptr, old, new) \
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux