Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp59422pxk; Wed, 16 Sep 2020 18:51:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzoUuWRSscZr2nUYAk7HYOHBhTtHeCMxX0k9PXQPO3+12TknoQp0GxKZ7/6ArceXCuCrK4U X-Received: by 2002:a50:fe98:: with SMTP id d24mr30220090edt.223.1600307504559; Wed, 16 Sep 2020 18:51:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600307504; cv=none; d=google.com; s=arc-20160816; b=wRdoXK3JWz0j2p2B8A/RltVX4+zEk2gZ7cuyByYllUT2OKUOcMZbdaRV1WtQAbGFnn GsATvPalaDs4rzXia7OUoYDudhpBxnr52tND5pEHfcuP4TlsZUYrOF8WVOtNwrkjkLyt Gpw0WMTRDfROILcFd0j23UVUwtqSo7BzepFU4YYZsAm0qyDGAHV5eWmoSSopXlWYX+0e SjaDnY3J57VyKENGdfcKAb5OBW0EjDaUdp6/Al8CBK+vtHuRYftaysaTefQ7w+yYZyqA jUh7mtsYcRyWhYUVzvTVQxcCfpgDEBAJcv10ubvzy0n5FwQFrLz7CjVg/RQ/leWu5tZe oH7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=rd5HEvHsALtOvla4Ck/KX0T+HXklBPhM9p2iyxb/yxg=; b=LPdfc8bqRbBGBBCeqXGXiBh2AhwCNmFhX/ZnwPJKPUp6jR/bGK9wyjGkkotC3mKqmM Lbyj5+s0mie5WuQ7Tbd1eUW19IJ8IkvM9Tpl1HE4mFiHU+yeTHniRFsWN72FrlKqaR68 YPdqO3OLjKiuK4JkTHIATjwVifGUpeL3tRgt3FSgKpC6aVptVxkJM4s1i+WyrbHRPk37 GOujI17krX5gQt8VkgEJfklFp3oK9ar0xw9RNM3KHN6d4nlEEMNzr+UfR/cJ2KRL9MSN 4kpx0hWmmegBy2jjl0WI2ZjxyCeVUAX7zvud/iY5b51Asob60nXAYga/CSPULAIDsqEq qI4g== 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 s2si13087796eji.538.2020.09.16.18.51.06; Wed, 16 Sep 2020 18:51:44 -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 S1726249AbgIQBtX (ORCPT + 99 others); Wed, 16 Sep 2020 21:49:23 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:40440 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726245AbgIQBtU (ORCPT ); Wed, 16 Sep 2020 21:49:20 -0400 X-Greylist: delayed 642 seconds by postgrey-1.27 at vger.kernel.org; Wed, 16 Sep 2020 21:49:20 EDT Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 58B289521B50BC4F38FB; Thu, 17 Sep 2020 09:49:16 +0800 (CST) Received: from localhost.localdomain (10.67.165.24) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.487.0; Thu, 17 Sep 2020 09:49:05 +0800 From: Xiaofei Tan To: , , , , , , , , CC: , Xiaofei Tan Subject: [PATCH v3] KVM: arm64: fix doc warnings in mmu code Date: Thu, 17 Sep 2020 09:47:49 +0800 Message-ID: <1600307269-50957-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 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..aced343 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: 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 @@ -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: Whether or not to create a writable mapping */ 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: The KVM stage-2 MMU pointer * @addr: Start address of range * @end: End address of range */ -- 2.8.1