Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp24911pxk; Tue, 15 Sep 2020 19:05:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+hxWK+blwigpczDUKGIZXralOb9aekk4uGQ2jd3dDPEf2TRD7Qqcs3Bo8Re4XUO19Seqq X-Received: by 2002:a17:906:1c13:: with SMTP id k19mr15532109ejg.384.1600221912923; Tue, 15 Sep 2020 19:05:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600221912; cv=none; d=google.com; s=arc-20160816; b=AcXPWZpg1ENtGGu5Ot4VW0UG7088Uz5Bm7n6uWLj3mzXgssRFtpgTOq57Q169x7nDT 9Oumr22SqKl/pnTv/QLzPX6yh3jOBMWzVzzSFvxIihzq1H2I0uObXr9etVtbQvZj2MDv O90H1SSHeYgEH43+tqXv+oNTxbnxQFlxWnXsx71P5kAXwVatO6msemdFOr9RHvbbi8fS sHi9FV+KD9WH+XSQRoAIHJl1v8U+sGlRbITSG8ebEdnHjq3pjr7gcRho5m0gc0Z9xc3u m6dJ+lEAJGnOV3vxLfcpWf9CIzqJB6ymek2IrmdYQ8DDxncyyUbLhY31X732s0Mornv0 SNzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=9g8t8NWVN0OUC67TSJNtcTeBzbzC/e3Ryvpazs1i7TQ=; b=xDdQ7aFu/FeS8up7REWipHYliUUgkGdh4T0I5tqnCRTW0UepqhdVLj6NUDDfLwdtAO XcNtrOIA+zq3dDZLjRZwloi7OMdBQ7tIiPAYEBNq1mGM3Dydu5omV+rrBLFxo+YnJOMp sQLqZiIzMRYvmXCtUTemijBVjq49LPALspAH5HafvwU0ArRPyiRdAs4l4cmrCyX6fM+J R7QHotK0d9SLbMdixYVASHmA/Cz0C4T7OGAH2nYBYRV27tY1UXn5il+e/7ZH3WQdf/V5 DgwXwxIrBs6wkxucxh7hQ7NfC3F+Lhb9WhZFn6V3lFvLMcCIJl6Tgh+ywoNAOkcksBsv 9Szw== 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 h10si11325427edr.206.2020.09.15.19.04.50; Tue, 15 Sep 2020 19:05:12 -0700 (PDT) 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 S1726192AbgIPCCI (ORCPT + 99 others); Tue, 15 Sep 2020 22:02:08 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:56916 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726039AbgIPCCI (ORCPT ); Tue, 15 Sep 2020 22:02:08 -0400 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 45A8C72410859EBA9344; Wed, 16 Sep 2020 10:02:06 +0800 (CST) Received: from localhost.localdomain (10.67.165.24) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.487.0; Wed, 16 Sep 2020 10:01:59 +0800 From: Xiaofei Tan To: , , , , , , , , CC: , Xiaofei Tan Subject: [PATCH v2] KVM: arm64: fix doc warnings in mmu code Date: Wed, 16 Sep 2020 10:00:39 +0800 Message-ID: <1600221639-4471-1-git-send-email-tanxiaofei@huawei.com> X-Mailer: git-send-email 2.8.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix following warnings caused by mismatch bewteen function parameters and comments. arch/arm64/kvm/mmu.c:128: warning: Function parameter or member 'mmu' not described in '__unmap_stage2_range' arch/arm64/kvm/mmu.c:128: warning: Function parameter or member 'may_block' not described in '__unmap_stage2_range' arch/arm64/kvm/mmu.c:128: warning: Excess function parameter 'kvm' description in '__unmap_stage2_range' arch/arm64/kvm/mmu.c:499: warning: Function parameter or member 'writable' not described in 'kvm_phys_addr_ioremap' arch/arm64/kvm/mmu.c:538: warning: Function parameter or member 'mmu' not described in 'stage2_wp_range' arch/arm64/kvm/mmu.c:538: warning: Excess function parameter 'kvm' description in 'stage2_wp_range' Signed-off-by: Xiaofei Tan --- arch/arm64/kvm/mmu.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm64/kvm/mmu.c b/arch/arm64/kvm/mmu.c index e8a51799..909e995 100644 --- a/arch/arm64/kvm/mmu.c +++ b/arch/arm64/kvm/mmu.c @@ -114,9 +114,10 @@ static bool kvm_is_device_pfn(unsigned long pfn) */ /** * unmap_stage2_range -- Clear stage2 page table entries to unmap a range - * @kvm: The VM pointer + * @mmu: pointer to mmu structure to operate on * @start: The intermediate physical base address of the range to unmap * @size: The size of the area to unmap + * @may_block: The flag that if block is allowed here * * 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 @@ -493,6 +494,7 @@ void kvm_free_stage2_pgd(struct kvm_s2_mmu *mmu) * @guest_ipa: The IPA at which to insert the mapping * @pa: The physical address of the device * @size: The size of the mapping + * @writable: If it is writable here */ int kvm_phys_addr_ioremap(struct kvm *kvm, phys_addr_t guest_ipa, phys_addr_t pa, unsigned long size, bool writable) @@ -530,7 +532,7 @@ int kvm_phys_addr_ioremap(struct kvm *kvm, phys_addr_t guest_ipa, /** * stage2_wp_range() - write protect stage2 memory region range - * @kvm: The KVM pointer + * @mmu: pointer to mmu structure to operate on * @addr: Start address of range * @end: End address of range */ -- 2.8.1