Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp2023361rwp; Thu, 13 Jul 2023 22:33:10 -0700 (PDT) X-Google-Smtp-Source: APBJJlF0TeZFKOoxkwWhP9CqkJpIV+0xVAPX8RecfOnaczUUIMKYGHTyBbVij++QHjuHEDC84jfL X-Received: by 2002:aa7:cd16:0:b0:518:7a3b:e9fb with SMTP id b22-20020aa7cd16000000b005187a3be9fbmr3461142edw.19.1689312790474; Thu, 13 Jul 2023 22:33:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689312790; cv=none; d=google.com; s=arc-20160816; b=S3Cz/Z0cHMRZ03145pS/GnxWi8r7LEutqwseqqXpmWI2qmPygZgiaIGw2nLCpxTOBt ZKqXDs//1B8no/KHjk5Xr7uiYBdPylpf24guokxARbfSac8M8pqwjZ2QLKV6iQE0uJE0 Q8o3xfpfNMRpiAd9NWuubMcS9wgsmlY6uFKqn8wXCQyD339oTxBDzgGxbZVukjxGz9yc 24PeYPtejmKqYGc3jCzc3wwg1BKRqB6GPdcj005p5U30fgHbnI0xnUkkjT3nL9xhD4St Dm5ILUAiQ0CflBdF1SIf7qjKECHQXhY9NfZZegJ7Zw7VD/bbwNsRQZp9x4RgLCVyLNZz ATNw== 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=vzk9KkLCEsfyFLWbcPeeQPObT60qSYQrwd/de3e7mfM=; fh=woX8Cwyxt80QNVZ8pGXZpmixBgCiJIco9eJcQNQDBdo=; b=nfCDClAj3J5Qokx4vqsD5aiwqFrPk5S0ee1ecmCz2eDyrDb6ewGfh/8HADhYVhr0mK rUrigH91fjsbNxbe3r7/56cix/Qjn0/Asc4ZIV8aQk7ZdJBVg0V9sobf3tyaTZnrGLro NQ8HZPW+K0h3jynACZwpqyLXGzAQlR37lo2U4TewXmgu/iZemNfZgwX1G2/Byqkk0GYe uFDnM9oUdlj0ZlWogqq26HQEXS0EQ6vKqY/ljLRSdot+DemVrhsDlLkgLc9CkKQpuH39 JEHkQbQ4zUQMsGxEWZWYFpH6osaYwVoEENtzSreL3WI9xiqjR5K4JzTutuPTiJf186jH T4dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (bad version) header.i=@208.org header.s=dkim header.b=ZOzmu5JD; 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 d12-20020aa7c1cc000000b0051bfc04e1b4si8216219edp.226.2023.07.13.22.32.47; Thu, 13 Jul 2023 22:33:10 -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=ZOzmu5JD; 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 S234858AbjGNEon (ORCPT + 99 others); Fri, 14 Jul 2023 00:44:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233913AbjGNEol (ORCPT ); Fri, 14 Jul 2023 00:44:41 -0400 Received: from mail.208.org (unknown [183.242.55.162]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00EEE2D66 for ; Thu, 13 Jul 2023 21:44:34 -0700 (PDT) Received: from mail.208.org (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTP id 4R2JmH72zzzBS5py for ; Fri, 14 Jul 2023 12:44:31 +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=1689309871; x=1691901872; bh=uqV/KVaosrZlp0sdvjEgoWRj1jH nPyBvXFKURudroCg=; b=ZOzmu5JDNWwKS+/E19qIDFG1wqAvDrFwi4NJL6ZQlnC XidPQvfuQZyOAnxALTb/VQHOD9f39m37VLUZ+YTZU+hliByn3KEQ7qdppO2jsrLj W7cFehWoKhRfkh7KPhDr8k3pr1+3DtzdzVJpf1lAoIenakziOsAUPIHNLVQ/AVNx /04XIJ//cHOWq+TGkGoYZJ/jIdb0BN1leusgAJ7EOJxC+uluHhFtCF8kxn1PGlQo OGuejtSd2KzrGwfyVShGEImVzTmRMEcWZpF1VXdLb5rAHEJkYgeSIjAJBQjcsihw k1lFnHkiWYR9t8Xq2OgZggIEVzid6T0dBrfD4XPvXGA== 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 PrbbnOP1ZQpn for ; Fri, 14 Jul 2023 12:44:31 +0800 (CST) Received: from localhost (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTPSA id 4R2JmH3R0hzBRSVj; Fri, 14 Jul 2023 12:44:31 +0800 (CST) MIME-Version: 1.0 Date: Fri, 14 Jul 2023 12:44:31 +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 required before the open parenthesis '(' In-Reply-To: References: User-Agent: Roundcube Webmail Message-ID: <46eb0d5df76c8ac67c752d747b58be55@208suo.com> 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,RCVD_IN_DNSWL_BLOCKED,RDNS_NONE,SPF_HELO_FAIL,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 To make the code easier and understandable, put a space before the opening parenthesis to distinguish functions from parentheses for other purposes. Doing so can also avoid some potential errors or ambiguities. Signed-off-by: Qingyun Chen --- arch/arm64/kvm/inject_fault.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/kvm/inject_fault.c b/arch/arm64/kvm/inject_fault.c index 0bd93a5f21ce..3cc891c0b292 100644 --- a/arch/arm64/kvm/inject_fault.c +++ b/arch/arm64/kvm/inject_fault.c @@ -29,7 +29,7 @@ static void pend_sync_exception(struct kvm_vcpu *vcpu) * changing context, and the exception itself can be delayed * until the next entry. */ - switch(*vcpu_cpsr(vcpu) & PSR_MODE_MASK) { + switch (*vcpu_cpsr(vcpu) & PSR_MODE_MASK) { case PSR_MODE_EL2h: case PSR_MODE_EL2t: kvm_pend_exception(vcpu, EXCEPT_AA64_EL2_SYNC);