2022-08-17 02:27:09

by Jiapeng Chong

[permalink] [raw]
Subject: [PATCH] x86/mm: describe pud member of pud_clear_huge

arch/x86/mm/pgtable.c:768: warning: Function parameter or member 'pud' not described in 'pud_clear_huge'.

Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=1914
Reported-by: Abaci Robot <[email protected]>
Signed-off-by: Jiapeng Chong <[email protected]>
---
arch/x86/mm/pgtable.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/mm/pgtable.c b/arch/x86/mm/pgtable.c
index a932d7712d85..c464e5aa5517 100644
--- a/arch/x86/mm/pgtable.c
+++ b/arch/x86/mm/pgtable.c
@@ -761,7 +761,7 @@ int pmd_set_huge(pmd_t *pmd, 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)
--
2.20.1.7.g153144c