diff options
author | Leo Yan <leo.yan@linaro.org> | 2019-02-22 03:10:09 -0500 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2019-02-22 11:43:57 -0500 |
commit | a242010776f880ec0d8917aae0406e4a70cdc36c (patch) | |
tree | b340098cafef67e78fb652e00e69b9c48889d9a6 /virt | |
parent | 54a1f393ce1b6645462d7f42e36171f86f54d030 (diff) |
KVM: Minor cleanups for kvm_main.c
This patch contains two minor cleanups: firstly it puts exported symbol
for kvm_io_bus_write() by following the function definition; secondly it
removes a redundant blank line.
Signed-off-by: Leo Yan <leo.yan@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'virt')
-rw-r--r-- | virt/kvm/kvm_main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 276af92ace6c..0fb0e9aa0935 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c | |||
@@ -3631,6 +3631,7 @@ int kvm_io_bus_write(struct kvm_vcpu *vcpu, enum kvm_bus bus_idx, gpa_t addr, | |||
3631 | r = __kvm_io_bus_write(vcpu, bus, &range, val); | 3631 | r = __kvm_io_bus_write(vcpu, bus, &range, val); |
3632 | return r < 0 ? r : 0; | 3632 | return r < 0 ? r : 0; |
3633 | } | 3633 | } |
3634 | EXPORT_SYMBOL_GPL(kvm_io_bus_write); | ||
3634 | 3635 | ||
3635 | /* kvm_io_bus_write_cookie - called under kvm->slots_lock */ | 3636 | /* kvm_io_bus_write_cookie - called under kvm->slots_lock */ |
3636 | int kvm_io_bus_write_cookie(struct kvm_vcpu *vcpu, enum kvm_bus bus_idx, | 3637 | int kvm_io_bus_write_cookie(struct kvm_vcpu *vcpu, enum kvm_bus bus_idx, |
@@ -3681,7 +3682,6 @@ static int __kvm_io_bus_read(struct kvm_vcpu *vcpu, struct kvm_io_bus *bus, | |||
3681 | 3682 | ||
3682 | return -EOPNOTSUPP; | 3683 | return -EOPNOTSUPP; |
3683 | } | 3684 | } |
3684 | EXPORT_SYMBOL_GPL(kvm_io_bus_write); | ||
3685 | 3685 | ||
3686 | /* kvm_io_bus_read - called under kvm->slots_lock */ | 3686 | /* kvm_io_bus_read - called under kvm->slots_lock */ |
3687 | int kvm_io_bus_read(struct kvm_vcpu *vcpu, enum kvm_bus bus_idx, gpa_t addr, | 3687 | int kvm_io_bus_read(struct kvm_vcpu *vcpu, enum kvm_bus bus_idx, gpa_t addr, |
@@ -3703,7 +3703,6 @@ int kvm_io_bus_read(struct kvm_vcpu *vcpu, enum kvm_bus bus_idx, gpa_t addr, | |||
3703 | return r < 0 ? r : 0; | 3703 | return r < 0 ? r : 0; |
3704 | } | 3704 | } |
3705 | 3705 | ||
3706 | |||
3707 | /* Caller must hold slots_lock. */ | 3706 | /* Caller must hold slots_lock. */ |
3708 | int kvm_io_bus_register_dev(struct kvm *kvm, enum kvm_bus bus_idx, gpa_t addr, | 3707 | int kvm_io_bus_register_dev(struct kvm *kvm, enum kvm_bus bus_idx, gpa_t addr, |
3709 | int len, struct kvm_io_device *dev) | 3708 | int len, struct kvm_io_device *dev) |