diff mbox

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

Message ID CAG4AFWZDL9W8bq6jL_HD3GXqqNVZE77bCkbZtAmBwAx0EWAPSg@mail.gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Jidong Xiao May 31, 2014, 5:45 a.m. UTC
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@gmail.com>
---
        .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@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

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,