2015-06-16 11:34:36

by Kevin Mulvey

[permalink] [raw]
Subject: [PATCH 1/2] KVM: fix checkpatch.pl errors in kvm/async_pf.h

fix brace spacing

Signed-off-by: Kevin Mulvey <[email protected]>
---
virt/kvm/async_pf.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/virt/kvm/async_pf.h b/virt/kvm/async_pf.h
index e7ef6447..ec4cfa2 100644
--- a/virt/kvm/async_pf.h
+++ b/virt/kvm/async_pf.h
@@ -29,8 +29,8 @@ void kvm_async_pf_deinit(void);
void kvm_async_pf_vcpu_init(struct kvm_vcpu *vcpu);
#else
#define kvm_async_pf_init() (0)
-#define kvm_async_pf_deinit() do{}while(0)
-#define kvm_async_pf_vcpu_init(C) do{}while(0)
+#define kvm_async_pf_deinit() do {} while (0)
+#define kvm_async_pf_vcpu_init(C) do {} while (0)
#endif

#endif
--
2.4.3


2015-06-16 11:34:54

by Kevin Mulvey

[permalink] [raw]
Subject: [PATCH 2/2] KVM: fix checkpatch.pl errors in kvm/coalesced_mmio.h

Tabs rather than spaces

Signed-off-by: Kevin Mulvey <[email protected]>
---
virt/kvm/coalesced_mmio.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/virt/kvm/coalesced_mmio.h b/virt/kvm/coalesced_mmio.h
index b280c20..5cbf190 100644
--- a/virt/kvm/coalesced_mmio.h
+++ b/virt/kvm/coalesced_mmio.h
@@ -24,9 +24,9 @@ struct kvm_coalesced_mmio_dev {
int kvm_coalesced_mmio_init(struct kvm *kvm);
void kvm_coalesced_mmio_free(struct kvm *kvm);
int kvm_vm_ioctl_register_coalesced_mmio(struct kvm *kvm,
- struct kvm_coalesced_mmio_zone *zone);
+ struct kvm_coalesced_mmio_zone *zone);
int kvm_vm_ioctl_unregister_coalesced_mmio(struct kvm *kvm,
- struct kvm_coalesced_mmio_zone *zone);
+ struct kvm_coalesced_mmio_zone *zone);

#else

--
2.4.3

2015-06-17 11:47:46

by Paolo Bonzini

[permalink] [raw]
Subject: Re: [PATCH 1/2] KVM: fix checkpatch.pl errors in kvm/async_pf.h



On 16/06/2015 13:33, Kevin Mulvey wrote:
> fix brace spacing
>
> Signed-off-by: Kevin Mulvey <[email protected]>
> ---
> virt/kvm/async_pf.h | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/virt/kvm/async_pf.h b/virt/kvm/async_pf.h
> index e7ef6447..ec4cfa2 100644
> --- a/virt/kvm/async_pf.h
> +++ b/virt/kvm/async_pf.h
> @@ -29,8 +29,8 @@ void kvm_async_pf_deinit(void);
> void kvm_async_pf_vcpu_init(struct kvm_vcpu *vcpu);
> #else
> #define kvm_async_pf_init() (0)
> -#define kvm_async_pf_deinit() do{}while(0)
> -#define kvm_async_pf_vcpu_init(C) do{}while(0)
> +#define kvm_async_pf_deinit() do {} while (0)
> +#define kvm_async_pf_vcpu_init(C) do {} while (0)
> #endif
>
> #endif
>

Applied both, thanks.

Paolo