Skip to contentSkip to conversation

KVM: x86: fix the space error for the pointer variables.

PATCH New zhaoxiao 1 participant 1 message Mar 1, 2021

Subsystems (2)
lore
Share & tools
lore

zhaoxiao

author
#0 lore raw

PATCH 1/1 KVM: x86: fix the space error for the pointer variables.

From: zhaoxiao <[email protected]>

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

---
 arch/x86/kvm/x86.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/x86/kvm/x86.c +2 -2
index 3712bb5245eb..98849f3112d4 100644
@@ -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;
Signature · 1 line
2.20.1