Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2980911pxk; Tue, 15 Sep 2020 07:18:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwO0VBYcqIx5mitN/q8zKksi387XTfGF3bm5AEllozOdd6tCiw17LPg0UV4KPOE4A/Y5Y/S X-Received: by 2002:a17:906:4d4d:: with SMTP id b13mr19667512ejv.221.1600179529874; Tue, 15 Sep 2020 07:18:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600179529; cv=none; d=google.com; s=arc-20160816; b=dLPbL/FBe9g/RVabDGo82VvyavgMGW9vrArkC4gLY553cRRV1smAwZC1LgikGvDQgf ckqwU9CkaL3SWVvckzCmhCOvncr0YnEprJ37iSlNgbpdWIiMZgsOiqO1WOJgxJr0P9JI DEHiYQjUtUASb5+IamG7oeEmR7Ct+8GU9krY85SPKjS4+cHjIxjapJ+/2vDCL/FZear2 rqK2FA+CKmlf3S7wv+GzKMNV44ih2VFAkGo+IA7yPnBTXZDsy5SlKIr2hhROVhSvUQF3 6c5YKvoVaB/czk8nvZk5+mN0OQw1Q4xDzwLK7RpfDzz70RyNBYFA9sKF7EBeXSqO8jEY pVCw== 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=l9Snb6hDnw4/lKhHBXjcXVcwxZPylPikFN8RZ9/KKSw=; b=Eh8dBb+s1svaFTVfTR44XkXcOWmkWoveJhpQlrmuZGl1PkZlyVHkiX/z278Yr80JN7 w2ANH+LAVA5BkPHqCtEln5Doj3m9+/ZBGSvscmRzrRbuW0ZfWCHU7WIZ2ra4VvjvyeG1 W3rb3cBHqa9ih7YM/kWhq2jDrcJSAxkTuxOgMGycC40DpT36TxG8HPAq8Zsi4hOVW9ob jHg2DdbU1VZ+1xe5Hy8IpILivD19IUMAmwHmMoTNLNiXL5YC7SJQHciHIAUEhzfEhQTp 8a4AqG7nCOtavkVgJCgRcdW0InWNVL5zF7AiyASH4Y/0JOcVT5Turcf91UooFN97AmbQ oN4Q== 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 i23si8808184ejy.49.2020.09.15.07.18.26; Tue, 15 Sep 2020 07:18:49 -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 S1726308AbgIOORA (ORCPT + 99 others); Tue, 15 Sep 2020 10:17:00 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:12273 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726807AbgIOOI2 (ORCPT ); Tue, 15 Sep 2020 10:08:28 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 688A3C371012733F450F; Tue, 15 Sep 2020 21:19:37 +0800 (CST) Received: from localhost.localdomain (10.67.165.24) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.487.0; Tue, 15 Sep 2020 21:19:29 +0800 From: Xiaofei Tan To: , , , , , , , , CC: , Xiaofei Tan Subject: [PATCH] KVM: arm64: fix doc warnings in mmu code Date: Tue, 15 Sep 2020 21:18:10 +0800 Message-ID: <1600175890-7435-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:119: warning: Function parameter or member 'pudp'not described in 'stage2_dissolve_pud' arch/arm64/kvm/mmu.c:119: warning: Excess function parameter 'pud' description in 'stage2_dissolve_pud' arch/arm64/kvm/mmu.c:348: warning: Function parameter or member 'mmu' not described in '__unmap_stage2_range' arch/arm64/kvm/mmu.c:348: warning: Function parameter or member 'may_block' not described in '__unmap_stage2_range' arch/arm64/kvm/mmu.c:348: warning: Excess function parameter 'kvm' description in '__unmap_stage2_range' arch/arm64/kvm/mmu.c:1474: warning: Function parameter or member 'writable' not described in 'kvm_phys_addr_ioremap' arch/arm64/kvm/mmu.c:1536: warning: Function parameter or member 'mmu' not described in 'stage2_wp_pmds' arch/arm64/kvm/mmu.c:1564: warning: Function parameter or member 'mmu' not described in 'stage2_wp_puds' arch/arm64/kvm/mmu.c:1591: warning: Function parameter or member 'mmu' not described in 'stage2_wp_p4ds' arch/arm64/kvm/mmu.c:1611: warning: Function parameter or member 'mmu' not described in 'stage2_wp_range' arch/arm64/kvm/mmu.c:1611: warning: Excess function parameter 'kvm' description in 'stage2_wp_range' Signed-off-by: Xiaofei Tan --- arch/arm64/kvm/mmu.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/arch/arm64/kvm/mmu.c b/arch/arm64/kvm/mmu.c index ba00bcc..c76add7 100644 --- a/arch/arm64/kvm/mmu.c +++ b/arch/arm64/kvm/mmu.c @@ -111,7 +111,7 @@ static void stage2_dissolve_pmd(struct kvm_s2_mmu *mmu, phys_addr_t addr, pmd_t * stage2_dissolve_pud() - clear and flush huge PUD entry * @mmu: pointer to mmu structure to operate on * @addr: IPA - * @pud: pud pointer for IPA + * @pudp: pud pointer for IPA * * Function clears a PUD entry, flushes addr 1st and 2nd stage TLBs. */ @@ -334,9 +334,10 @@ static void unmap_stage2_p4ds(struct kvm_s2_mmu *mmu, pgd_t *pgd, /** * 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 @@ -1468,6 +1469,7 @@ static int stage2_pudp_test_and_clear_young(pud_t *pud) * @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) @@ -1526,7 +1528,7 @@ static void stage2_wp_ptes(pmd_t *pmd, phys_addr_t addr, phys_addr_t end) /** * stage2_wp_pmds - write protect PUD range - * kvm: kvm instance for the VM + * @mmu: pointer to mmu structure to operate on * @pud: pointer to pud entry * @addr: range start address * @end: range end address @@ -1555,6 +1557,7 @@ static void stage2_wp_pmds(struct kvm_s2_mmu *mmu, pud_t *pud, /** * stage2_wp_puds - write protect P4D range + * @mmu: pointer to mmu structure to operate on * @p4d: pointer to p4d entry * @addr: range start address * @end: range end address @@ -1582,6 +1585,7 @@ static void stage2_wp_puds(struct kvm_s2_mmu *mmu, p4d_t *p4d, /** * stage2_wp_p4ds - write protect PGD range + * @mmu: pointer to mmu structure to operate on * @pgd: pointer to pgd entry * @addr: range start address * @end: range end address @@ -1603,7 +1607,7 @@ static void stage2_wp_p4ds(struct kvm_s2_mmu *mmu, pgd_t *pgd, /** * 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