Commit 5f076944 authored by Matthew Wilcox (Oracle)'s avatar Matthew Wilcox (Oracle) Committed by Linus Torvalds

mm/mempolicy: fix mpol_misplaced kernel-doc

Sphinx interprets the Return section as a list and complains about it.
Turn it into a sentence and move it to the end of the kernel-doc to fit
the kernel-doc style.

Link: https://lkml.kernel.org/r/20210225150642.2582252-8-willy@infradead.orgSigned-off-by: default avatarMatthew Wilcox (Oracle) <willy@infradead.org>
Acked-by: default avatarMike Rapoport <rppt@linux.ibm.com>
Acked-by: default avatarVlastimil Babka <vbabka@suse.cz>
Cc: Michal Hocko <mhocko@suse.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent eb350739
...@@ -92,6 +92,7 @@ More Memory Management Functions ...@@ -92,6 +92,7 @@ More Memory Management Functions
:export: :export:
.. kernel-doc:: mm/page_alloc.c .. kernel-doc:: mm/page_alloc.c
.. kernel-doc:: mm/mempolicy.c
.. kernel-doc:: include/linux/mm_types.h .. kernel-doc:: include/linux/mm_types.h
:internal: :internal:
.. kernel-doc:: include/linux/mm.h .. kernel-doc:: include/linux/mm.h
......
...@@ -2448,14 +2448,11 @@ static void sp_free(struct sp_node *n) ...@@ -2448,14 +2448,11 @@ static void sp_free(struct sp_node *n)
* @addr: virtual address where page mapped * @addr: virtual address where page mapped
* *
* Lookup current policy node id for vma,addr and "compare to" page's * Lookup current policy node id for vma,addr and "compare to" page's
* node id. * node id. Policy determination "mimics" alloc_page_vma().
*
* Returns:
* -1 - not misplaced, page is in the right node
* node - node id where the page should be
*
* Policy determination "mimics" alloc_page_vma().
* Called from fault path where we know the vma and faulting address. * Called from fault path where we know the vma and faulting address.
*
* Return: -1 if the page is in a node that is valid for this policy, or a
* suitable node ID to allocate a replacement page from.
*/ */
int mpol_misplaced(struct page *page, struct vm_area_struct *vma, unsigned long addr) int mpol_misplaced(struct page *page, struct vm_area_struct *vma, unsigned long addr)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment