Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1684615pxj; Fri, 4 Jun 2021 23:37:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJbMfGtjlUElUeq11ncCAxGXYmqN6MIU7heNv1zt1+oOL4bg+nD9kM6UD/EOgyvhwsYfap X-Received: by 2002:a17:906:c311:: with SMTP id s17mr7764873ejz.202.1622875059555; Fri, 04 Jun 2021 23:37:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622875059; cv=none; d=google.com; s=arc-20160816; b=GlyvutVEXaDye0nbTT7ZrL+694szHKhZVa3UPMNHqEuEeV8CQ2jeIHpPz2Zj8/fotK LIfwU7xMe0NXumpj5cUF/AsWi2suRielwYChBsvGuFWPj+xYdZ30F4hst/GoqKFFcGqH WrdFvTAeXscISkTOZh8ao1s9706Bl2qIMbFpKZoDlz3rBQ0CdjfoHjzXAcXawpL7+z0x hwotKfxww2UyiZzSDyWx4GyF+uIGSusnfyYIoTmhebudEMbVbFH3sJo3nd/3dCtuL4Bv MA4pamj6TV7mzceOgKmh+eIPs1oxmf1QAcnL///Pv0hfRnTIy13kQ0+ih49XZLprOy4l 3W1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=yuCRJssxRVNiO8qbrW4/Wh1WIVl+h6tNUWJ719YeAw4=; b=IW8j6bzy/3z52pYOonptU0z5YeGD5XIGGQtmjKBU7nCqNg7Eaed/dy7gMFySkAylSS kaS1Ej/bsAkZzpi4US/Esv6p4FcmLiJZHZKTGK+SaOLfatT5icPGNdDRzxSaAQ6J34mj fgza81rTV6kyU57eYuEQfvscGVu1XOV3e4k5G4VQy8MB0Y47rttGfz++uRb8iCAovMm5 AZI6zX2FSF7qVxXwIny4va0hDShMaqljHP409c5kwxenr8tiYzmdzwYaIHixLYnWGzLf s7Y2hcjyYF6EUeYtLzv00pN1uu9q3NnUh3qYY5pKfYKzmkdvdrC0vq9o58bPRMufSzBu qxHA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ba30si2246936edb.347.2021.06.04.23.37.16; Fri, 04 Jun 2021 23:37:39 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229892AbhFEGh4 (ORCPT + 99 others); Sat, 5 Jun 2021 02:37:56 -0400 Received: from szxga03-in.huawei.com ([45.249.212.189]:4362 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229660AbhFEGh4 (ORCPT ); Sat, 5 Jun 2021 02:37:56 -0400 Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.54]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4FxqYZ5P6qz68VF; Sat, 5 Jun 2021 14:32:18 +0800 (CST) Received: from dggpeml500020.china.huawei.com (7.185.36.88) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Sat, 5 Jun 2021 14:36:06 +0800 Received: from huawei.com (10.175.127.227) by dggpeml500020.china.huawei.com (7.185.36.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Sat, 5 Jun 2021 14:36:05 +0800 From: Baokun Li To: , , , , , , , , CC: , , , , Subject: [PATCH -next] x86/mm: fix doc warnings in pgtable.c Date: Sat, 5 Jun 2021 14:45:19 +0800 Message-ID: <20210605064519.692571-1-libaokun1@huawei.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.127.227] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggpeml500020.china.huawei.com (7.185.36.88) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes the following W=1 kernel build warning(s): arch/x86/mm/pgtable.c:621: warning: Function parameter or member 'reserve' not described in 'reserve_top_address' arch/x86/mm/pgtable.c:670: warning: Function parameter or member 'p4d' not described in 'p4d_set_huge' arch/x86/mm/pgtable.c:670: warning: Function parameter or member 'addr' not described in 'p4d_set_huge' arch/x86/mm/pgtable.c:670: warning: Function parameter or member 'prot' not described in 'p4d_set_huge' arch/x86/mm/pgtable.c:680: warning: Function parameter or member 'p4d' not described in 'p4d_clear_huge' arch/x86/mm/pgtable.c:705: warning: Function parameter or member 'pud' not described in 'pud_set_huge' arch/x86/mm/pgtable.c:705: warning: Function parameter or member 'addr' not described in 'pud_set_huge' arch/x86/mm/pgtable.c:705: warning: Function parameter or member 'prot' not described in 'pud_set_huge' arch/x86/mm/pgtable.c:730: warning: Function parameter or member 'pud' not described in 'pud_clear_huge' arch/x86/mm/pgtable.c:749: warning: Function parameter or member 'pmd' not described in 'pmd_set_huge' arch/x86/mm/pgtable.c:749: warning: Function parameter or member 'addr' not described in 'pmd_set_huge' arch/x86/mm/pgtable.c:749: warning: Function parameter or member 'prot' not described in 'pmd_set_huge' arch/x86/mm/pgtable.c:777: warning: Function parameter or member 'pmd' not described in 'pmd_clear_huge' Signed-off-by: Baokun Li --- arch/x86/mm/pgtable.c | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/arch/x86/mm/pgtable.c b/arch/x86/mm/pgtable.c index 1303ff6ef7be..2d01a5d8ad85 100644 --- a/arch/x86/mm/pgtable.c +++ b/arch/x86/mm/pgtable.c @@ -612,7 +612,7 @@ int pmdp_clear_flush_young(struct vm_area_struct *vma, /** * reserve_top_address - reserves a hole in the top of kernel address space - * @reserve - size of hole to reserve + * @reserve: size of hole to reserve * * Can be used to relocate the fixmap area and poke a hole in the top * of kernel address space to make room for a hypervisor. @@ -663,7 +663,9 @@ void native_set_fixmap(unsigned /* enum fixed_addresses */ idx, #ifdef CONFIG_X86_5LEVEL /** * p4d_set_huge - setup kernel P4D mapping - * + * @p4d: Pointer to a P4D. + * @addr: Virtual address associated with p4d. + * @prot: indicates guest access rights: PROT_NONE, PROT_READ or PROT_WRITE. * No 512GB pages yet -- always return 0 */ int p4d_set_huge(p4d_t *p4d, phys_addr_t addr, pgprot_t prot) @@ -673,7 +675,7 @@ int p4d_set_huge(p4d_t *p4d, phys_addr_t addr, pgprot_t prot) /** * p4d_clear_huge - clear kernel P4D mapping when it is set - * + * @p4d: Pointer to a P4D. * No 512GB pages yet -- always return 0 */ int p4d_clear_huge(p4d_t *p4d) @@ -685,7 +687,9 @@ int p4d_clear_huge(p4d_t *p4d) #if CONFIG_PGTABLE_LEVELS > 3 /** * pud_set_huge - setup kernel PUD mapping - * + * @pud: Pointer to a PUD. + * @addr: Virtual address associated with pud. + * @prot: indicates guest access rights: PROT_NONE, PROT_READ or PROT_WRITE. * MTRRs can override PAT memory types with 4KiB granularity. Therefore, this * function sets up a huge page only if any of the following conditions are met: * @@ -723,7 +727,7 @@ int pud_set_huge(pud_t *pud, phys_addr_t addr, pgprot_t prot) /** * pud_clear_huge - clear kernel PUD mapping when it is set - * + * @pud: Pointer to a PUD. * Returns 1 on success and 0 on failure (no PUD map is found). */ int pud_clear_huge(pud_t *pud) @@ -740,7 +744,9 @@ int pud_clear_huge(pud_t *pud) #if CONFIG_PGTABLE_LEVELS > 2 /** * pmd_set_huge - setup kernel PMD mapping - * + * @pmd: Pointer to a PMD. + * @addr: Virtual address associated with pmd. + * @prot: indicates guest access rights: PROT_NONE, PROT_READ or PROT_WRITE. * See text over pud_set_huge() above. * * Returns 1 on success and 0 on failure. @@ -770,7 +776,7 @@ int pmd_set_huge(pmd_t *pmd, phys_addr_t addr, pgprot_t prot) /** * pmd_clear_huge - clear kernel PMD mapping when it is set - * + * @pmd: Pointer to a PMD. * Returns 1 on success and 0 on failure (no PMD map is found). */ int pmd_clear_huge(pmd_t *pmd) -- 2.31.1