linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] KVM: x86: fix the space error for the pointer variables.
@ 2021-03-01  8:27 zhaoxiao
  0 siblings, 0 replies; 4+ messages in thread
From: zhaoxiao @ 2021-03-01  8:27 UTC (permalink / raw)
  To: tglx, mingo, bp, x86
  Cc: seanjc, vkuznets, wanpengli, jmattson, joro, hpa, linux-kernel, zhaoxiao

From: zhaoxiao <zhaoxiao@uniontech.com>

The following pointer variables don't meet the kernel coding style,
so fix the space error.

Signed-off-by: zhaoxiao <zhaoxiao@uniontech.com>
---
 arch/x86/kvm/x86.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index 3712bb5245eb..98849f3112d4 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -5368,7 +5368,7 @@ static int kvm_add_msr_filter(struct kvm *kvm, struct kvm_msr_filter_range *user
 	if (!bitmap_size || bitmap_size > KVM_MSR_FILTER_MAX_BITMAP_SIZE)
 		return -EINVAL;
 
-	bitmap = memdup_user((__user u8*)user_range->bitmap, bitmap_size);
+	bitmap = memdup_user((__user u8 *)user_range->bitmap, bitmap_size);
 	if (IS_ERR(bitmap))
 		return PTR_ERR(bitmap);
 
@@ -10554,7 +10554,7 @@ void kvm_arch_sync_events(struct kvm *kvm)
  * address, i.e. its accessibility is not guaranteed, and must be
  * accessed via __copy_{to,from}_user().
  */
-void __user * __x86_set_memory_region(struct kvm *kvm, int id, gpa_t gpa,
+void __user *__x86_set_memory_region(struct kvm *kvm, int id, gpa_t gpa,
 				      u32 size)
 {
 	int i, r;
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH] KVM: x86: fix the space error for the pointer variables.
@ 2021-02-26 13:38 zhaoxiao
  0 siblings, 0 replies; 4+ messages in thread
From: zhaoxiao @ 2021-02-26 13:38 UTC (permalink / raw)
  To: tglx, mingo, bp, x86
  Cc: seanjc, vkuznets, wanpengli, jmattson, joro, hpa, linux-kernel, zhaoxiao

The following pointer variables don't meet the kernel coding style,
so fix the space error.

Signed-off-by: zhaoxiao <zhaoxiao@uniontech.com>
---
 arch/x86/kvm/x86.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index 3712bb5245eb..98849f3112d4 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -5368,7 +5368,7 @@ static int kvm_add_msr_filter(struct kvm *kvm, struct kvm_msr_filter_range *user
 	if (!bitmap_size || bitmap_size > KVM_MSR_FILTER_MAX_BITMAP_SIZE)
 		return -EINVAL;
 
-	bitmap = memdup_user((__user u8*)user_range->bitmap, bitmap_size);
+	bitmap = memdup_user((__user u8 *)user_range->bitmap, bitmap_size);
 	if (IS_ERR(bitmap))
 		return PTR_ERR(bitmap);
 
@@ -10554,7 +10554,7 @@ void kvm_arch_sync_events(struct kvm *kvm)
  * address, i.e. its accessibility is not guaranteed, and must be
  * accessed via __copy_{to,from}_user().
  */
-void __user * __x86_set_memory_region(struct kvm *kvm, int id, gpa_t gpa,
+void __user *__x86_set_memory_region(struct kvm *kvm, int id, gpa_t gpa,
 				      u32 size)
 {
 	int i, r;
-- 
2.20.1




^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH] KVM: x86: fix the space error for the pointer variables.
@ 2021-02-26 12:50 zhaoxiao
  0 siblings, 0 replies; 4+ messages in thread
From: zhaoxiao @ 2021-02-26 12:50 UTC (permalink / raw)
  To: tglx, mingo, bp, x86
  Cc: seanjc, vkuznets, wanpengli, jmattson, joro, hpa, linux-kernel, zhaoxiao

The following pointer variables don't meet the kernel coding style,
so fix the space error.

Signed-off-by: zhaoxiao <zhaoxiao@uniontech.com>
---
 arch/x86/kvm/x86.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index 3712bb5245eb..98849f3112d4 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -5368,7 +5368,7 @@ static int kvm_add_msr_filter(struct kvm *kvm, struct kvm_msr_filter_range *user
 	if (!bitmap_size || bitmap_size > KVM_MSR_FILTER_MAX_BITMAP_SIZE)
 		return -EINVAL;
 
-	bitmap = memdup_user((__user u8*)user_range->bitmap, bitmap_size);
+	bitmap = memdup_user((__user u8 *)user_range->bitmap, bitmap_size);
 	if (IS_ERR(bitmap))
 		return PTR_ERR(bitmap);
 
@@ -10554,7 +10554,7 @@ void kvm_arch_sync_events(struct kvm *kvm)
  * address, i.e. its accessibility is not guaranteed, and must be
  * accessed via __copy_{to,from}_user().
  */
-void __user * __x86_set_memory_region(struct kvm *kvm, int id, gpa_t gpa,
+void __user *__x86_set_memory_region(struct kvm *kvm, int id, gpa_t gpa,
 				      u32 size)
 {
 	int i, r;
-- 
2.20.1




^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH] KVM: x86: fix the space error for the pointer variables.
@ 2021-02-26 12:26 zhaoxiao
  0 siblings, 0 replies; 4+ messages in thread
From: zhaoxiao @ 2021-02-26 12:26 UTC (permalink / raw)
  To: tglx, mingo, bp, x86
  Cc: seanjc, vkuznets, wanpengli, jmattson, joro, hpa, linux-kernel, zhaoxiao

The following pointer variables don't meet the kernel coding style,
so fix the space error.

Signed-off-by: zhaoxiao <zhaoxiao@uniontech.com>
---
 arch/x86/kvm/x86.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index 3712bb5245eb..98849f3112d4 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -5368,7 +5368,7 @@ static int kvm_add_msr_filter(struct kvm *kvm, struct kvm_msr_filter_range *user
 	if (!bitmap_size || bitmap_size > KVM_MSR_FILTER_MAX_BITMAP_SIZE)
 		return -EINVAL;
 
-	bitmap = memdup_user((__user u8*)user_range->bitmap, bitmap_size);
+	bitmap = memdup_user((__user u8 *)user_range->bitmap, bitmap_size);
 	if (IS_ERR(bitmap))
 		return PTR_ERR(bitmap);
 
@@ -10554,7 +10554,7 @@ void kvm_arch_sync_events(struct kvm *kvm)
  * address, i.e. its accessibility is not guaranteed, and must be
  * accessed via __copy_{to,from}_user().
  */
-void __user * __x86_set_memory_region(struct kvm *kvm, int id, gpa_t gpa,
+void __user *__x86_set_memory_region(struct kvm *kvm, int id, gpa_t gpa,
 				      u32 size)
 {
 	int i, r;
-- 
2.20.1




^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-03-01  8:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-01  8:27 [PATCH] KVM: x86: fix the space error for the pointer variables zhaoxiao
  -- strict thread matches above, loose matches on Subject: below --
2021-02-26 13:38 zhaoxiao
2021-02-26 12:50 zhaoxiao
2021-02-26 12:26 zhaoxiao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).