Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp1039941rwp; Thu, 13 Jul 2023 05:23:07 -0700 (PDT) X-Google-Smtp-Source: APBJJlExVR0YJLRk65+O+Yv4PdHjD75Vf22xCg4MMFgAZU3uhth+XpToiswNAT36u+oZwM9jahU9 X-Received: by 2002:a17:902:d504:b0:1b3:f8db:6f0e with SMTP id b4-20020a170902d50400b001b3f8db6f0emr993421plg.43.1689250987003; Thu, 13 Jul 2023 05:23:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689250986; cv=none; d=google.com; s=arc-20160816; b=fWgrjJgPIMnomFvJXYscDXdcaAc/isVaudXuhg2HS5dlN9GW+nxMKaRjk0Ijta92CJ mzLDnJQT38MKe1vCtDjMVS7BdBgjqZU6fnrJ17Wc58tl00MN76uozupjLNeQkPg7jm7A 1XBHNP3Fy3T/awQoKMu7iFmMbRT5zg+m960AjJnLJofM2oNas/VdPl5YCxiUlYE0Af5f OKtiVZCDKt3v75cjw/Rr1U6fGLLVIYto2M4LMJbUxhrZjUMLLRXuzbc43QdNvXSyS0N1 WX3Z6ip10dLB5Ls7BucgDt/oP9oGdinTTPFiwnadBCT8Qg4pX0BKLZbzrbDH31v8OcWF AjAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:user-agent :references:in-reply-to:subject:cc:to:from:date:mime-version :dkim-signature; bh=Tpyx3+Bk7ovBCC4hCO/iu5NG/i+e7vzmK9lgdhZt1Rg=; fh=woX8Cwyxt80QNVZ8pGXZpmixBgCiJIco9eJcQNQDBdo=; b=p1bpR+xqCb6WMSt2VPQnS4gZ3VPhhqOKaEZ3Iybf0EYA1xREGdhAlGktuvTmGABGGl kXYRaK8+zPG+uWHn/p4RIm6vN6BtrIUca4I3ap2LkYsRTwDRrBKn7GpMycHULAZ+ewZV zJ3GU6Au+3dsBrrZmzla/D00X+FbY+4znPBh1uaf7EFUILfYZTQ1vvmIS1yQ1ty7j4SB tvikJJWxQoD27UqjD8+HTtvlnB3USPaihgAz/Bl/PJ+80+BPgz7XQZyaxgUqjJsc/iL+ 5pseb58oYoZTDfSM8+2+nkMQRP3SrBju0KL68LTx2pZB9rnyOLU93QoxfUm44BFIBy/R wvwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (bad version) header.i=@208.org header.s=dkim header.b=SRGvJb4y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kg14-20020a170903060e00b001b8a60fb314si4996212plb.409.2023.07.13.05.22.54; Thu, 13 Jul 2023 05:23:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=neutral (bad version) header.i=@208.org header.s=dkim header.b=SRGvJb4y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234513AbjGMMUJ (ORCPT + 99 others); Thu, 13 Jul 2023 08:20:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234702AbjGMMT7 (ORCPT ); Thu, 13 Jul 2023 08:19:59 -0400 Received: from mail.208.org (unknown [183.242.55.162]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28FF026B3 for ; Thu, 13 Jul 2023 05:19:47 -0700 (PDT) Received: from mail.208.org (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTP id 4R1tvy14zHzBRSV9 for ; Thu, 13 Jul 2023 20:19:42 +0800 (CST) Authentication-Results: mail.208.org (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=208.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=208.org; h= content-transfer-encoding:content-type:message-id:user-agent :references:in-reply-to:subject:to:from:date:mime-version; s= dkim; t=1689250782; x=1691842783; bh=r7J75gJn0L5wuugvzGABNEIG4Fd 2ejoVXDfNg+ybWRw=; b=SRGvJb4ymU2AbaiXP/PxsqgSiY8feDCP51hCM3h8k7M YYvDPyV9M+rPZ5CdgXMHmYVrW/DJ+6tZMqucWZKz9ENoYZUzZSGWFambaFvawKCM swzKN/97U7hORR7HVP621PbBZBDtemvoYznEjR9OM3t7hB7+WtZqqExjgPpv9jnM Z1l9qbVPjiKxsEFpb8LvZ0/A3ur2mNHB8YxQz6+wgEWR/j/K17vsKbuwgPbSRgOn 8fv8HEkVlKGZN4Q75xgF0xJUI/jclx3/ZlPkuNTHBVmj0N1fCLj9FNuWaTNr/qQ3 JEa1b4enX/mKxL8ZPa38z2VJhUYEBNyFGhgpXqLT1ew== X-Virus-Scanned: amavisd-new at mail.208.org Received: from mail.208.org ([127.0.0.1]) by mail.208.org (mail.208.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id L56yPDs3IT7r for ; Thu, 13 Jul 2023 20:19:42 +0800 (CST) Received: from localhost (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTPSA id 4R1tvx4g1wzBRRLw; Thu, 13 Jul 2023 20:19:41 +0800 (CST) MIME-Version: 1.0 Date: Thu, 13 Jul 2023 20:19:41 +0800 From: chenqingyun001@208suo.com To: maz@kernel.org, oliver.upton@linux.dev, catalin.marinas@arm.com, will@kernel.org Cc: kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org, james.morse@arm.com, suzuki.poulose@arm.com, yuzenghui@huawei.com Subject: [PATCH] KVM: arm64:space prohibited between function name and open parenthesis '(';space required before the open parenthesis '(' In-Reply-To: References: User-Agent: Roundcube Webmail Message-ID: X-Sender: chenqingyun001@208suo.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,RDNS_NONE,SPF_HELO_FAIL,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Using spaces can affect the readability and consistency of your code. If you use a space between the function name and the opening parenthesis, it may be mistaken for the function name instead of the actual function name. Use spaces between keywords and opening parentheses to distinguish function calls from control statements Signed-off-by: Qingyun Chen --- arch/arm64/kvm/hyp/exception.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/kvm/hyp/exception.c b/arch/arm64/kvm/hyp/exception.c index 424a5107cddb..46888dba3def 100644 --- a/arch/arm64/kvm/hyp/exception.c +++ b/arch/arm64/kvm/hyp/exception.c @@ -16,7 +16,7 @@ #include #include -#if !defined (__KVM_NVHE_HYPERVISOR__) && !defined (__KVM_VHE_HYPERVISOR__) +#if !defined(__KVM_NVHE_HYPERVISOR__) && !defined(__KVM_VHE_HYPERVISOR__) #error Hypervisor code only! #endif @@ -295,7 +295,7 @@ static void enter_exception32(struct kvm_vcpu *vcpu, u32 mode, u32 vect_offset) return_address += return_offsets[vect_offset >> 2][is_thumb]; /* KVM only enters the ABT and UND modes, so only deal with those */ - switch(mode) { + switch (mode) { case PSR_AA32_MODE_ABT: __vcpu_write_spsr_abt(vcpu, host_spsr_to_spsr32(spsr)); vcpu_gp_regs(vcpu)->compat_lr_abt = return_address;