Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp61245pxk; Wed, 16 Sep 2020 18:55:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx81gFSIFIOZBigNseCMXe84riUC6HmBI1QvOwtP5QnKJk9GFqqNtXsoyRpz0TpAXYf2n+P X-Received: by 2002:a50:f687:: with SMTP id d7mr31779624edn.353.1600307755240; Wed, 16 Sep 2020 18:55:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600307755; cv=none; d=google.com; s=arc-20160816; b=qVZXOBq8IqC2h9OYZRLHqSUL8ZYZsEan3qxSN4tWWfP+iSnqc8K3DMZGYgnt2NXWRF 1s+BS2pLxm4VL75TVE20PSLDBCGx/cgRIKeajbAtC2pDTge03ov2bJV7JfVJ6kKOwiK5 ZhMa/8XURZSq87Yo/8ytQ0eQvdZqmfslCEDG983gWqrN5km1iuSFO4na8LAkiYKhawV+ pmrUyZ00orKTEE2TWGsBZvtXbUVKubTatrT9Kpk6ZyrHTYbnKSEwUvmBshR/B4kd7EgG swGB18egatgMEGQlNHY1RsvaY36spkZzngHodvvg30ALlkj3jLZhy8uZwW/vQQpyGj0y MEFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=gMDX1rPp8IymfNVZoCNy2A7C6mrwfYrtzyK+WLl8pJ8=; b=CvJe3WGYy04teO+ZcDFuvMuswpUgWOF6tpSiSOq4tzjemucgEIw4MiJx34QQ7hjW6h ht6ICmdilszsITdRRaN1cG/B74O1eSU9zy9gaEb2gQz2O+w/L0vnWXMx6bWYl+e0xV1u ZPv81oDO+gnewMPhHq1heDTkb95wGIosGlT5wMOE/h+KI464SXL+Cti7RXHV+etFkAxO /ODsM/VPD75yzup2VyJvxd2NmZwdROF2lwRNOhgKdQinxtcH37xTSO/m2lSLEfhjrcVt BeSZ7UdGt+lCKFmIxEdZuJPvTG7Fd/8oqkmMvDm5H2YqB+j/Fj8zt4KoH0dY7NAPlFka htkQ== 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 ox9si12615266ejb.97.2020.09.16.18.55.32; Wed, 16 Sep 2020 18:55:55 -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 S1726148AbgIQBy1 (ORCPT + 99 others); Wed, 16 Sep 2020 21:54:27 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:12801 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725987AbgIQByW (ORCPT ); Wed, 16 Sep 2020 21:54:22 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 4C4479FA31C5FF9D6CFA; Thu, 17 Sep 2020 09:38:32 +0800 (CST) Received: from [127.0.0.1] (10.74.185.4) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.487.0; Thu, 17 Sep 2020 09:38:22 +0800 Subject: Re: [PATCH v2] KVM: arm64: fix doc warnings in mmu code To: Will Deacon References: <1600221639-4471-1-git-send-email-tanxiaofei@huawei.com> <20200916083756.GD27496@willie-the-truck> CC: , , , , , , , , From: Xiaofei Tan Message-ID: <5F62BE0E.9060208@huawei.com> Date: Thu, 17 Sep 2020 09:38:22 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <20200916083756.GD27496@willie-the-truck> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.74.185.4] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Will, Thanks for your advices, will accept all of them. On 2020/9/16 16:37, Will Deacon wrote: > On Wed, Sep 16, 2020 at 10:00:39AM +0800, Xiaofei Tan wrote: >> 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 > > 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: If it is writable here > > 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: pointer to mmu structure to operate on > > The KVM stage-2 MMU pointer. > > Will > > . > -- thanks tanxiaofei