From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 45AB1C433DB for ; Thu, 25 Feb 2021 15:09:58 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id CE0DA64EF5 for ; Thu, 25 Feb 2021 15:09:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CE0DA64EF5 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 5CF828D0003; Thu, 25 Feb 2021 10:09:57 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 531796B0078; Thu, 25 Feb 2021 10:09:57 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 420278D0003; Thu, 25 Feb 2021 10:09:57 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0114.hostedemail.com [216.40.44.114]) by kanga.kvack.org (Postfix) with ESMTP id 27A1B6B0075 for ; Thu, 25 Feb 2021 10:09:57 -0500 (EST) Received: from smtpin19.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id EB973824C451 for ; Thu, 25 Feb 2021 15:09:56 +0000 (UTC) X-FDA: 77857125192.19.378A868 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf12.hostedemail.com (Postfix) with ESMTP id 3201C3505 for ; Thu, 25 Feb 2021 15:09:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=YSXstTwNtMVPODxA25i6+2/KjJJPRINzU0bk6FcmGYU=; b=BBKXILgwlxYJZI9AzE4cmjD96H f4rS1T+bEaIjs3r+1+a8/fuuDpUC8xwRglR8yBXZfD1/8LaNSe2bp4+0HfFByyo90KYu5PMCnJXSK 37puzcomfxvXfBVVIc0om159mkgaamPWGF/iH7+hK5aP9IiVkrONsS8HbMb+sz24BU/oOUY4360FY RLlnwnNgT+3kuAKvk9tnuBwfZxsUkZDX6ELeIMX4AvDV2gOSJPPQituOxYtZYj1K9rPB6CPLrYTRL fZIGpeQMlSi72Hv9rV1/hbj+BEft/nGJ7jr/gchlrV2ShITokBMH9OPM0MohuYhdxsxzXuHeXba4O eSfoxYiQ==; Received: from willy by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1lFIGc-00AptN-36; Thu, 25 Feb 2021 15:09:30 +0000 From: "Matthew Wilcox (Oracle)" To: Andrew Morton Cc: "Matthew Wilcox (Oracle)" , linux-mm@kvack.org, Mike Rapoport Subject: [PATCH v3 7/7] mm/mempolicy: Fix mpol_misplaced kernel-doc Date: Thu, 25 Feb 2021 15:06:42 +0000 Message-Id: <20210225150642.2582252-8-willy@infradead.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210225150642.2582252-1-willy@infradead.org> References: <20210225150642.2582252-1-willy@infradead.org> MIME-Version: 1.0 X-Stat-Signature: mi1e45j9fyhdhhfyw37bbujonr6gqu5a X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: 3201C3505 Received-SPF: none (infradead.org>: No applicable sender policy available) receiver=imf12; identity=mailfrom; envelope-from=""; helo=casper.infradead.org; client-ip=90.155.50.34 X-HE-DKIM-Result: pass/pass X-HE-Tag: 1614265790-982252 Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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. Signed-off-by: Matthew Wilcox (Oracle) Acked-by: Mike Rapoport --- Documentation/core-api/mm-api.rst | 1 + mm/mempolicy.c | 11 ++++------- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/Documentation/core-api/mm-api.rst b/Documentation/core-api/m= m-api.rst index 201b5423303b..874ae1250258 100644 --- a/Documentation/core-api/mm-api.rst +++ b/Documentation/core-api/mm-api.rst @@ -92,3 +92,4 @@ More Memory Management Functions :export: =20 .. kernel-doc:: mm/page_alloc.c +.. kernel-doc:: mm/mempolicy.c diff --git a/mm/mempolicy.c b/mm/mempolicy.c index 6d0fe85d4f8d..cd0295567a04 100644 --- a/mm/mempolicy.c +++ b/mm/mempolicy.c @@ -2448,14 +2448,11 @@ static void sp_free(struct sp_node *n) * @addr: virtual address where page mapped * * Lookup current policy node id for vma,addr and "compare to" page's - * node id. - * - * Returns: - * -1 - not misplaced, page is in the right node - * node - node id where the page should be - * - * Policy determination "mimics" alloc_page_vma(). + * node id. Policy determination "mimics" alloc_page_vma(). * 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, unsign= ed long addr) { --=20 2.29.2