From patchwork Mon Feb 15 21:02:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew Wilcox X-Patchwork-Id: 12089203 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,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 201DDC433DB for ; Mon, 15 Feb 2021 21:27:46 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 42BD364DF4 for ; Mon, 15 Feb 2021 21:27:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 42BD364DF4 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 9AB418D0145; Mon, 15 Feb 2021 16:27:44 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 932048D0140; Mon, 15 Feb 2021 16:27:44 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7D3F58D0145; Mon, 15 Feb 2021 16:27:44 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0142.hostedemail.com [216.40.44.142]) by kanga.kvack.org (Postfix) with ESMTP id 62F6F8D0140 for ; Mon, 15 Feb 2021 16:27:44 -0500 (EST) Received: from smtpin21.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 2A9791830BAFC for ; Mon, 15 Feb 2021 21:27:44 +0000 (UTC) X-FDA: 77821789248.21.D186BFF Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf26.hostedemail.com (Postfix) with ESMTP id 61C1D40001DE for ; Mon, 15 Feb 2021 21:27:40 +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=U8xL7jZtVdkTL717JgJE+H0mUa5R2CNMtxN6ezrvZEM=; b=EQyfhl9CuNGCPwMd78XzMzdIXE qM967QAynK0viF5gFJJV0EoypwtKXz3r25543NdypnfHP6FdF+At4afDgPIDzvUsoKRLyEiR4wv75 t8VBBYnzJvVrjLr2YfcZM1Wj0YkpqyGkiV9QsdzSQdfPw7kwePjbBCXZewoCbHuyHsY/isY9VO5mt od+aGlfz6ZRJlmPmB2aFuZtzeIipGr7kc93P8Dsg4XYgNDBkr0oX139UBQfCdIz4fWOTMO5hnA8gT BSyzq22qmvSVUr7oddeW9IyWQMkJgdmY9Py1x+KNJVi32yVIKkzZ5jdRx8fZZCnrjXnNDHVSatZ43 Jz3inIzw==; Received: from willy by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1lBl0a-00G3jW-Dd; Mon, 15 Feb 2021 21:02:16 +0000 From: "Matthew Wilcox (Oracle)" To: Andrew Morton Cc: "Matthew Wilcox (Oracle)" , linux-mm@kvack.org, Mike Rapoport Subject: [PATCH v2 6/6] mm/mempolicy: Fix mpol_misplaced kernel-doc Date: Mon, 15 Feb 2021 21:02:03 +0000 Message-Id: <20210215210203.3827513-7-willy@infradead.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210215210203.3827513-1-willy@infradead.org> References: <20210215210203.3827513-1-willy@infradead.org> MIME-Version: 1.0 X-Stat-Signature: meu49f9j7rcs79oz3tc8sd1puku7ka8k X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: 61C1D40001DE Received-SPF: none (infradead.org>: No applicable sender policy available) receiver=imf26; identity=mailfrom; envelope-from=""; helo=casper.infradead.org; client-ip=90.155.50.34 X-HE-DKIM-Result: pass/pass X-HE-Tag: 1613424460-456474 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/mm-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: .. kernel-doc:: mm/page_alloc.c +.. kernel-doc:: mm/mempolicy.c diff --git a/mm/mempolicy.c b/mm/mempolicy.c index 96c98ce16727..577f59c8f327 100644 --- a/mm/mempolicy.c +++ b/mm/mempolicy.c @@ -2456,14 +2456,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, unsigned long addr) {