Skip to contentSkip to conversation

mm: rmap.c: fix kenrel-doc warning

PATCH In review Muhammad Muzammil 2 participants 2 messages Oct 6, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 mm: rmap.c: fix kenrel-doc warning

after running make htmldocs, getting this warning
warning: Function parameter or member 'folio' not described in 'folio_move_anon_rmap'
and this patch resolves this warning

changes since v1:
- changed page to folio and reverted other changes

---
 mm/rmap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/rmap.c +1 -1
index c1f11c9dbe61..6976fb6feeed 100644
@@ -1129,7 +1129,7 @@ int folio_total_mapcount(struct folio *folio)
 
 /**
  * folio_move_anon_rmap - move a folio to our anon_vma
- * @page:	The folio to move to our anon_vma
+ * @folio:  The folio to move to our anon_vma
  * @vma:	The vma the folio belongs to
  *
  * When a folio belongs exclusively to one process after a COW event,
Signature · 1 line
2.27.0
Reviewed-by on v2 1/1
#1 lore raw
Quoted 18 lines · Muhammad Muzammil

after running make htmldocs, getting this warning
warning: Function parameter or member 'folio' not described in 'folio_move_anon_rmap'
and this patch resolves this warning

changes since v1:
- changed page to folio and reverted other changes

---
  mm/rmap.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
mm/rmap.c +0 -0
index c1f11c9dbe61..6976fb6feeed 100644

mm/rmap.c int folio_total_mapcount(struct folio *folio) · line 1135

Quoted 8 lines
mm/rmap.c +1 -1
@@ -1129,7 +1129,7 @@ int folio_total_mapcount(struct folio *folio)
 
  /**
   * folio_move_anon_rmap - move a folio to our anon_vma
- * @page:	The folio to move to our anon_vma
+ * @folio:  The folio to move to our anon_vma
   * @vma:	The vma the folio belongs to
   *
   * When a folio belongs exclusively to one process after a COW event,
Signature · 3 lines
Cheers,

David / dhildenb