Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1172839pxb; Fri, 26 Feb 2021 04:32:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJyvMa3SrprHAX9Fo+fIPKKa2DJHgXOjC070WZdEGUNlbYignnikQ7WUyz+XQnkT4nqKf2gO X-Received: by 2002:a17:907:2113:: with SMTP id qn19mr3099395ejb.98.1614342743370; Fri, 26 Feb 2021 04:32:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614342743; cv=none; d=google.com; s=arc-20160816; b=GWf0ZTR9DpyOU+knn5Lrf5gozNpaTuwO/Emduk2ytKdLgHDUNIRmg4zjObEDjk2U8X Qg6FJvbQJ3VP7Og/Ho3RvkvFAm8SJmVN7RhdL04/N/HDloIeNizll01oOlNThQoQddeW cI9E3vHvzp4kYA/R2V6u0nqnw+EJJtUvlmG5zhwXHsdkSNxbTl8gVa6CblD/cNTYeX6k 3eG8rV8vBFGgOSLJ0QMG4zqetTgOAQjSrC8tD+vrWYksKEgywEyjwpbbjHNvaZJFzKnY nhtqJ+LDZFIJI8oUsmqpE8rn3MY5TXx4vn5k7kI6eiOcNY+mNGX0xLBQ7b62UaFZhEi3 WKwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=tdGedMhY4ELyfJ+HakCwamNuXWGxOaLp35EHfvyjzz4=; b=L2qy4k52mGL0rXjPd8Hck+KEGvSPcuMhj490zi+4jhekrNsfXzDqrEFWQ57eb66oLm IXIs7f4vZYO9g9kDfzdf3uBAiRmh8eB9/Gt1XPOkxP6wPtOlm1OJZRMnZ9SB7W4cJ+q3 299WcaujjNuU2Tc1FL8+YcYAD0WHn96eCSMTrCbnA/Xc9HuFsSQRFnP99/F5DUw68qHc 2eNSUE9tQyz6TLiXnXjOMP4GZYQ/59rfpgEVcVAGscaukhWUQ2LiY7yzc6AvXuPqzw+i WoDzwOUcpVXYsAmi2CvCui6lrXjjs8mrY4DdMyUgOJUIj/ukGcCxBziEGTm+bjXMscVO inAQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bg8si5904426ejb.155.2021.02.26.04.31.58; Fri, 26 Feb 2021 04:32:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229707AbhBZM3R (ORCPT + 99 others); Fri, 26 Feb 2021 07:29:17 -0500 Received: from lucky1.263xmail.com ([211.157.147.132]:45742 "EHLO lucky1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229537AbhBZM3Q (ORCPT ); Fri, 26 Feb 2021 07:29:16 -0500 Received: from localhost (unknown [192.168.167.69]) by lucky1.263xmail.com (Postfix) with ESMTP id A2E1DF25FE; Fri, 26 Feb 2021 20:26:43 +0800 (CST) X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-ADDR-CHECKED: 0 X-ANTISPAM-LEVEL: 2 X-ABS-CHECKED: 0 Received: from localhost.localdomain (unknown [124.126.19.250]) by smtp.263.net (postfix) whith ESMTP id P17142T139833041213184S1614342403054911_; Fri, 26 Feb 2021 20:26:43 +0800 (CST) X-IP-DOMAINF: 1 X-UNIQUE-TAG: X-RL-SENDER: zhaoxiao@uniontech.com X-SENDER: zhaoxiao@uniontech.com X-LOGIN-NAME: zhaoxiao@uniontech.com X-FST-TO: tglx@linutronix.de X-SENDER-IP: 124.126.19.250 X-ATTACHMENT-NUM: 0 X-System-Flag: 0 From: zhaoxiao To: tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, x86@kernel.org Cc: seanjc@google.com, vkuznets@redhat.com, wanpengli@tencent.com, jmattson@google.com, joro@8bytes.org, hpa@zytor.com, linux-kernel@vger.kernel.org, zhaoxiao Subject: [PATCH] KVM: x86: fix the space error for the pointer variables. Date: Fri, 26 Feb 2021 20:26:42 +0800 Message-Id: <20210226122642.22174-1-zhaoxiao@uniontech.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following pointer variables don't meet the kernel coding style, so fix the space error. Signed-off-by: zhaoxiao --- 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