Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2153967pxm; Thu, 24 Feb 2022 17:55:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJx38CSHTgiG503OQpCSW8h1vCO3uYWmzeZujFxRZ49mjGalYmOfV1Po3bT59ynjg2sLsw9g X-Received: by 2002:a17:906:2608:b0:6c9:b248:4dcf with SMTP id h8-20020a170906260800b006c9b2484dcfmr4313820ejc.320.1645754157836; Thu, 24 Feb 2022 17:55:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645754157; cv=none; d=google.com; s=arc-20160816; b=OhUfhPl+ATJKIRmoKFD/MQxdKLyclnBgc/AdYMwa9L/irQrFq0m20hCvaCjavJfrsx JDRmK31omFFZXlyYkyiRWjB7rCjjV8uwVFwuf2Zn4tI7OAyCuGBdk1Of2pwNZwz6WpnC xj9lsMON+4fxXhDzznCbcJssxCGoVWR7Qgk5rVofYbDUFVPPYGNfKH+gBQlGZIpnaZUF AudkgPAXRwAPw7QMqCz8h9kGCp/5nNCo5Zg8qkamWZVeobD+ShvDjm/C4KPBlFtnR7Xu u7nQbwb/5ptqi9H+xQgzTDwIDJO5pCaLroNu7tqXKrWBxP0GSIA+zlDhYxREydpHf5Zr afuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=W/M4h+Wc7afgAQolO9V8hencFRzUNhasCzwSblw7Pxo=; b=fNmApUIKjqFq4a4Rux5SIgrs090g05Rsz7ot1mZXUs27+ak1JoQrC7oXU5oNhokhsA yI+vThjGF/orAOWiUVNGxyGzDQYYu+NqU8C4zRi8EYYWjzSSrpyqPBuAcml9Jo6GUw8c RljNdY86se85ukHE/JDZyU+OLAqeiWqbNbJYBxySosIAKlqsdYaUDCcejdEIJLxX4HDy 7kQ2q/zPZQ694LqwkzfGQzpgEwUvaMRF/TBpG0/sjiGoxSBNfNjjbyKoXNAyWEzUdT8h WpGLAcbEoqtJFXWDYsD6nGtMQHB6/SqTx9wRcD8jPmncB5K8Y3WQTRLse9VqbKTSiW9H lNIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=IH0Zoluc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z4-20020a17090665c400b006b20854d44bsi537552ejn.966.2022.02.24.17.55.35; Thu, 24 Feb 2022 17:55:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=IH0Zoluc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235153AbiBXWDD (ORCPT + 99 others); Thu, 24 Feb 2022 17:03:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234968AbiBXWDB (ORCPT ); Thu, 24 Feb 2022 17:03:01 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 13C14186227 for ; Thu, 24 Feb 2022 14:02:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=W/M4h+Wc7afgAQolO9V8hencFRzUNhasCzwSblw7Pxo=; b=IH0Zoluc/B7clTwJrdxD86Jlpl Thdkbi8MQrXEkA6LA0vTZEQflLec3i9qdGhyMVIIVKOCkOCjYQH6pmBc6n8R5BEpgY2HWOFddUQPU EVsNCvRp/xJ6n7OYRHtB9UGMSxZwhPFkOhLMXACgEfT0CrPmDyNKQ44RdfhwmfzVicXGxUA9siCEK O4l7RQOb3XIsSqQnSOALuoR+xvo9DkAZogTwxWABFiSnSGieFOQl0OCCOBqNY7nbhzrUBlE2MwkiF UgFsgoBOhw49wUd5Ac/VUR9r4S0ZJ9r2BnUC1WCj7OHlcQrVdp+VRkkbODh+CbiXCtlBfPoXPr4YA jfm9urZQ==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nNMBu-005BBf-6W; Thu, 24 Feb 2022 22:02:26 +0000 Date: Thu, 24 Feb 2022 22:02:26 +0000 From: Matthew Wilcox To: Yang Li Cc: akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Abaci Robot Subject: Re: [PATCH -next] mm/rmap: Fix argument list that the kdoc format and script verified. Message-ID: References: <20220224014344.99537-1-yang.lee@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220224014344.99537-1-yang.lee@linux.alibaba.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 24, 2022 at 09:43:44AM +0800, Yang Li wrote: > The warnings were found by running scripts/kernel-doc, which is > caused by using 'make W=1'. > > mm/rmap.c:1684: warning: Function parameter or member 'folio' not > described in 'try_to_unmap' > mm/rmap.c:1684: warning: Excess function parameter 'page' description in > 'try_to_unmap' Fixed these like this instead: /** - * try_to_unmap - try to remove all page table mappings to a page - * @page: the page to get unmapped + * try_to_unmap - Try to remove all page table mappings to a folio. + * @folio: The folio to unmap. * @flags: action and flags * * Tries to remove all the page table entries which are mapping this - * page, used in the pageout path. Caller must hold the page lock. + * folio. It is the caller's responsibility to check if the folio is + * still mapped if needed (use TTU_SYNC to prevent accounting races). * - * It is the caller's responsibility to check if the page is still - * mapped when needed (use TTU_SYNC to prevent accounting races). + * Context: Caller must hold the folio lock. */