From patchwork Tue Jun 15 10:21:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yanan Wang X-Patchwork-Id: 12322447 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0D4CCC48BE5 for ; Tue, 15 Jun 2021 16:56:10 +0000 (UTC) Received: from bombadil.infradead.org (unknown [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BEE826157E for ; Tue, 15 Jun 2021 16:56:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BEE826157E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=huawei.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=zsCgTnlefWGwrgtj/vBUl/0ASdXS7eTzCrUThiflWdE=; b=idLlAh9scbwm7j 0XwsdHISoo+5sBEINncjoHab1IQgw8vwvstgu8KZPPHHR8kz5Oezgg6hmsxsw0KJi4fmVpq4ctj6s BCLxLtVUVvCqCBzmRjQrO1/qqGJ0EgeKrXv/OpxAG/1mSsRpmtmop9SDIi3DyrdLluHndq5DByPWz Waah8D/QhRR4atUeCxUqvXee8Gd8zOmZAqgOmYaP742Ry66GnPUR8KQVtgj44ITTc1e3TOW70rRD5 JH0YPDZICFQKm1xWtBHhnfMU8QLDUfPVPEHoDLYdJ4cENuD2IrcFJ/oLFMJS2FNj3tR8YeRezAzNf nikPIOXK2gvG25QMb9qA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ltCG3-001UY2-80; Tue, 15 Jun 2021 16:49:47 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lt9Gx-000DEY-K8 for linux-arm-kernel@bombadil.infradead.org; Tue, 15 Jun 2021 13:38:32 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Type:MIME-Version:Message-ID: Date:Subject:CC:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:In-Reply-To:References; bh=UEKb4V7CObX9GCQZLwPlY9ivAQrG3zlYT3wwxJZD/8Q=; b=GUlV7ie9/+bMvs6IJfzt4j5d/3 IJsMDh3xMPECDzTnZsf9Hjszj9zBHaddZ+0ZspEoUDNfW6XGbEAXDY/9tssEjTdkZLN73V8CWRRJB 2cxNZ9/XCWSektHv8OO5pe/l50xjs++wVZvY2iSS/SyIbMtG4jWhhNINFe3fpDVjLDDg2jJSQLGTz XSenSPqe9J1KcjsT/8zcEBTv4cTgGuAkdggdYOwp2yQeobgjyAk9O5UJDhOlEnlUAYLjgONGI7XeL 5z9pPBzI+n02xp2JxDLPcNfmFwL2TW9sKJWhPTyB8/GX5BqeDp132GXAvkm93uYORjA3ZwUTiYxPv JNcmBTqQ==; Received: from szxga03-in.huawei.com ([45.249.212.189]) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lt6C6-007hYN-5w for linux-arm-kernel@lists.infradead.org; Tue, 15 Jun 2021 10:21:26 +0000 Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.54]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4G444f0V6Rz63bM; Tue, 15 Jun 2021 18:17:22 +0800 (CST) Received: from dggpemm500023.china.huawei.com (7.185.36.83) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Tue, 15 Jun 2021 18:21:13 +0800 Received: from DESKTOP-TMVL5KK.china.huawei.com (10.174.187.128) by dggpemm500023.china.huawei.com (7.185.36.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Tue, 15 Jun 2021 18:21:13 +0800 From: Yanan Wang To: Marc Zyngier , James Morse , Alexandru Elisei , Suzuki K Poulose , Catalin Marinas , "Will Deacon" CC: , , , , , Yanan Wang Subject: [PATCH v2] KVM: arm64: Fix inconsistency from function comment of __unmap_stage2_range Date: Tue, 15 Jun 2021 18:21:11 +0800 Message-ID: <20210615102111.34128-1-wangyanan55@huawei.com> X-Mailer: git-send-email 2.8.4.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.174.187.128] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpemm500023.china.huawei.com (7.185.36.83) X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210615_112125_307788_157D5783 X-CRM114-Status: GOOD ( 12.21 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Commit 'b5331379bc626' (KVM: arm64: Only reschedule if MMU_NOTIFIER_RANGE_BLOCKABLE is not set) has converted the original function name 'unmap_stage2_range' to '__unmap_stage2_range', but leaving the corresponding function comment unadjusted. So fix it for code readability. Incidentally, we also tewak some comment identation by using tabs instead of spaces to be consistent with the other functions. Signed-off-by: Yanan Wang --- arch/arm64/kvm/mmu.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm64/kvm/mmu.c b/arch/arm64/kvm/mmu.c index 5742ba765ff9..293779790d16 100644 --- a/arch/arm64/kvm/mmu.c +++ b/arch/arm64/kvm/mmu.c @@ -151,11 +151,11 @@ static void *kvm_host_va(phys_addr_t phys) * does. */ /** - * unmap_stage2_range -- Clear stage2 page table entries to unmap a range - * @mmu: The KVM stage-2 MMU pointer - * @start: The intermediate physical base address of the range to unmap - * @size: The size of the area to unmap - * @may_block: Whether or not we are permitted to block + * __unmap_stage2_range -- Clear stage2 page table entries to unmap a range + * @mmu: The KVM stage-2 MMU pointer + * @start: The intermediate physical base address of the range to unmap + * @size: The size of the area to unmap + * @may_block: Whether or not we are permitted to block * * Clear a range of stage-2 mappings, lowering the various ref-counts. Must * be called while holding mmu_lock (unless for freeing the stage2 pgd before