Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp4826234pxu; Wed, 21 Oct 2020 06:24:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1KaOsSGM2tmPbO6FypTxJKNoLk44dcqImhgpbPImpZeNYKAsaRBMxxB6uG/kRRBlU7tL+ X-Received: by 2002:a17:906:dc5:: with SMTP id p5mr3701583eji.116.1603286645868; Wed, 21 Oct 2020 06:24:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603286645; cv=none; d=google.com; s=arc-20160816; b=RxbXk0oSTPQCjun2BLTC6uMHTUFxgrKkEQ3kydf5te1Zgl8Ko0lzhSVfreEGOMLBTz YQG0HJSnr1yk9wrSHjzLDLpshNIKsw9WPsV/NmTtsgVFuHVG0a8lnENUS0JE+kKOO/7b GnZCkElJqGGGWF0IFerPO2aDzDnbnuKswZmSlgIwRDYOPWPTWFt3MXemauDmhn2laE5A lVm4GpRoBW9hatu1qE5LPlNzX7VPmSwJjZYDM8t0HFKlwKPEb2L214T+RBUIrZAkg7xR bg+8HD8xpHhLdDS45k/H7f1SQjLIgvC1sZ2ev2gVX71Qs+MfFVTH4v91b7LJh1FbsOAK AF2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=T6O7HnJ8Lxbg/0hsVf4Jg5UBpBcWi7aSEuVJOA32s+o=; b=rKYZ+bkSRaaLZuhOPehnQwdVKJ9KBmMl9FER/0fVk3284ZTcsaonCXgye9kopTuniQ dHiRqaUZPa2mOJdnKYXE/kwqhku0sN5BcF1kqES+KdRi2M1Qe8DibPLI73QmyEUAMo9H 6i3thHzKIWH8GRxR1LEFqhcUBwCIwjcDZIiJrrQiJBUTzb/wmoUi35eoCnTc8Sdl8I3X BWMR6iOJ6bO3dRF9npWL5sFDk/NCHbA8Tpb0St7LJV7zLgd7aUOqEnfsUobf5F5uuPh6 ZUgQKFmyPd9w8Ta0ZqT5ABpJz+KuxW3gsDlyGILHyLIzAS+aommvAj9mugkak4SRSUdM nYeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="F6b2/Hvp"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dd21si1320580edb.91.2020.10.21.06.23.44; Wed, 21 Oct 2020 06:24:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="F6b2/Hvp"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2438318AbgJUJ4H (ORCPT + 99 others); Wed, 21 Oct 2020 05:56:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:59342 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2441601AbgJUJ4F (ORCPT ); Wed, 21 Oct 2020 05:56:05 -0400 Received: from coco.lan (ip5f5ad5a8.dynamic.kabel-deutschland.de [95.90.213.168]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9D4512227F; Wed, 21 Oct 2020 09:56:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603274164; bh=3XUhM3gn53XwSV8lX0RZcYImKqCOmEDaYHS2aoCH1oQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=F6b2/Hvplwp6gqHefWYscY7mRhzksXqmvGu+MoMsSTwcyFEnXPioDBJ80ntAPr2X+ NiX57Se5Q0YkxqHkENkBosWtDdTucBU7ddGRiVsuJW4w2HRkQYhI2CwpMoqUDdMJMn 3Lb7EFZcXAGa8VaqnNkVnMCZjNNA0kLAjhVWgJHY= Date: Wed, 21 Oct 2020 11:55:57 +0200 From: Mauro Carvalho Chehab To: Matthew Wilcox Cc: Linux Doc Mailing List , Jonathan Corbet , Andreas Gruenbacher , Andrew Morton , Guoqing Jiang , Jens Axboe , Johannes Weiner , Stephen Rothwell , Thomas Gleixner , William Kucharski , Yang Shi , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 10/24] mm: pagemap.h: fix two kernel-doc markups Message-ID: <20201021115557.24c83c35@coco.lan> In-Reply-To: <20201013122654.GE20115@casper.infradead.org> References: <54ea6dd0fc37c48aef3fc3ae454c54a80db313dc.1602590106.git.mchehab+huawei@kernel.org> <20201013122654.GE20115@casper.infradead.org> X-Mailer: Claws Mail 3.17.7 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Matthew, Em Tue, 13 Oct 2020 13:26:54 +0100 Matthew Wilcox escreveu: > On Tue, Oct 13, 2020 at 02:14:37PM +0200, Mauro Carvalho Chehab wrote: > > Changeset 6c8adf8446a3 ("mm: add find_lock_head") renamed the > > index parameter, but forgot to update the kernel-doc markups > > accordingly. > > The patch is correct (thank you!), but the description here references > a git commit id that's only found in the -next tree and is unstable. > > Andrew, can you fold this into the offending commit? Patch already reached upstream. So, it gained a stable reference. So, I'm changing its description to: Author: Mauro Carvalho Chehab Date: Thu Sep 10 08:38:07 2020 +0200 locking/refcount: move kernel-doc markups to the proper place Changeset a435b9a14356 ("locking/refcount: Provide __refcount API to obtain the old value") added a set of functions starting with __ that have a new parameter, adding a series of new warnings: $ ./scripts/kernel-doc -none include/linux/refcount.h include/linux/refcount.h:169: warning: Function parameter or member 'oldp' not described in '__refcount_add_not_zero' include/linux/refcount.h:208: warning: Function parameter or member 'oldp' not described in '__refcount_add' include/linux/refcount.h:239: warning: Function parameter or member 'oldp' not described in '__refcount_inc_not_zero' include/linux/refcount.h:261: warning: Function parameter or member 'oldp' not described in '__refcount_inc' include/linux/refcount.h:291: warning: Function parameter or member 'oldp' not described in '__refcount_sub_and_test' include/linux/refcount.h:327: warning: Function parameter or member 'oldp' not described in '__refcount_dec_and_test' include/linux/refcount.h:347: warning: Function parameter or member 'oldp' not described in '__refcount_dec' The issue is that the kernel-doc markups are now misplaced, as they should be added just before the functions. So, move the kernel-doc markups to the proper places, in order to drop the warnings. It should be noticed that git show produces a crappy output, for this patch without "--patience" flag. Fixes: a435b9a14356 ("locking/refcount: Provide __refcount API to obtain the old value") Signed-off-by: Mauro Carvalho Chehab If ok for you, I should be sending it upstream on a next pull request for the documentation warning fix series. Regards, Mauro > > > Fixes: 6c8adf8446a3 ("mm: add find_lock_head") > > Signed-off-by: Mauro Carvalho Chehab > > --- > > include/linux/pagemap.h | 8 ++++---- > > 1 file changed, 4 insertions(+), 4 deletions(-) > > > > diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h > > index 7dd3523093db..932a260a29f2 100644 > > --- a/include/linux/pagemap.h > > +++ b/include/linux/pagemap.h > > @@ -342,9 +342,9 @@ static inline struct page *find_get_page_flags(struct address_space *mapping, > > /** > > * find_lock_page - locate, pin and lock a pagecache page > > * @mapping: the address_space to search > > - * @offset: the page index > > + * @index: the page index > > * > > - * Looks up the page cache entry at @mapping & @offset. If there is a > > + * Looks up the page cache entry at @mapping & @index. If there is a > > * page cache page, it is returned locked and with an increased > > * refcount. > > * > > @@ -361,9 +361,9 @@ static inline struct page *find_lock_page(struct address_space *mapping, > > /** > > * find_lock_head - Locate, pin and lock a pagecache page. > > * @mapping: The address_space to search. > > - * @offset: The page index. > > + * @index: The page index. > > * > > - * Looks up the page cache entry at @mapping & @offset. If there is a > > + * Looks up the page cache entry at @mapping & @index. If there is a > > * page cache page, its head page is returned locked and with an increased > > * refcount. > > * > > -- > > 2.26.2 > > Thanks, Mauro