summaryrefslogtreecommitdiffstats
path: root/mm/truncate.c
diff options
context:
space:
mode:
authorMike Rapoport <rppt@linux.ibm.com>2019-03-05 18:48:42 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2019-03-06 00:07:20 -0500
commita862f68a8b360086f248cbc3606029441b5f5197 (patch)
treec38cb46b547d865da3df438e3db0284003bdd5b1 /mm/truncate.c
parentbc8ff3ca6589d63c6d10f5ee8bed38f74851b469 (diff)
docs/core-api/mm: fix return value descriptions in mm/
Many kernel-doc comments in mm/ have the return value descriptions either misformatted or omitted at all which makes kernel-doc script unhappy: $ make V=1 htmldocs ... ./mm/util.c:36: info: Scanning doc for kstrdup ./mm/util.c:41: warning: No description found for return value of 'kstrdup' ./mm/util.c:57: info: Scanning doc for kstrdup_const ./mm/util.c:66: warning: No description found for return value of 'kstrdup_const' ./mm/util.c:75: info: Scanning doc for kstrndup ./mm/util.c:83: warning: No description found for return value of 'kstrndup' ... Fixing the formatting and adding the missing return value descriptions eliminates ~100 such warnings. Link: http://lkml.kernel.org/r/1549549644-4903-4-git-send-email-rppt@linux.ibm.com Signed-off-by: Mike Rapoport <rppt@linux.ibm.com> Reviewed-by: Andrew Morton <akpm@linux-foundation.org> Cc: Jonathan Corbet <corbet@lwn.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/truncate.c')
-rw-r--r--mm/truncate.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/mm/truncate.c b/mm/truncate.c
index 798e7ccfb030..b7d3c99f00c9 100644
--- a/mm/truncate.c
+++ b/mm/truncate.c
@@ -539,6 +539,8 @@ EXPORT_SYMBOL(truncate_inode_pages_final);
539 * invalidate_mapping_pages() will not block on IO activity. It will not 539 * invalidate_mapping_pages() will not block on IO activity. It will not
540 * invalidate pages which are dirty, locked, under writeback or mapped into 540 * invalidate pages which are dirty, locked, under writeback or mapped into
541 * pagetables. 541 * pagetables.
542 *
543 * Return: the number of the pages that were invalidated
542 */ 544 */
543unsigned long invalidate_mapping_pages(struct address_space *mapping, 545unsigned long invalidate_mapping_pages(struct address_space *mapping,
544 pgoff_t start, pgoff_t end) 546 pgoff_t start, pgoff_t end)
@@ -664,7 +666,7 @@ static int do_launder_page(struct address_space *mapping, struct page *page)
664 * Any pages which are found to be mapped into pagetables are unmapped prior to 666 * Any pages which are found to be mapped into pagetables are unmapped prior to
665 * invalidation. 667 * invalidation.
666 * 668 *
667 * Returns -EBUSY if any pages could not be invalidated. 669 * Return: -EBUSY if any pages could not be invalidated.
668 */ 670 */
669int invalidate_inode_pages2_range(struct address_space *mapping, 671int invalidate_inode_pages2_range(struct address_space *mapping,
670 pgoff_t start, pgoff_t end) 672 pgoff_t start, pgoff_t end)
@@ -761,7 +763,7 @@ EXPORT_SYMBOL_GPL(invalidate_inode_pages2_range);
761 * Any pages which are found to be mapped into pagetables are unmapped prior to 763 * Any pages which are found to be mapped into pagetables are unmapped prior to
762 * invalidation. 764 * invalidation.
763 * 765 *
764 * Returns -EBUSY if any pages could not be invalidated. 766 * Return: -EBUSY if any pages could not be invalidated.
765 */ 767 */
766int invalidate_inode_pages2(struct address_space *mapping) 768int invalidate_inode_pages2(struct address_space *mapping)
767{ 769{