Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2134130rdh; Tue, 26 Sep 2023 13:37:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHe2q2SWdl+gveXmJ62rxGMIoyWTY/5A/HdA2MtFNBcYgznC0y8Ff2dMv9J4nHlMUnYaQTV X-Received: by 2002:a05:6a00:4c10:b0:68c:59cb:2dd9 with SMTP id ea16-20020a056a004c1000b0068c59cb2dd9mr5562151pfb.1.1695760666762; Tue, 26 Sep 2023 13:37:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695760666; cv=none; d=google.com; s=arc-20160816; b=Vqu9DKB4dzB1MW6N8m1yubEzKQmxXoq4sJDC8FXM86VCEFW7H8ae2nVcAMYU2f2t9M DPIZeCfOe3zAgfOUhc9aP0qbovrA4BIJyM2PL0MyU2ja2hIbtEpPRgDQL5m5oPMU8g9F Yl4/9gyMn+eSdRE68NFQ/EVCGKAv4dFy8TWz/mKhyoD3EhJ5G66Jrd1y6ncQ3C3Uvw2I UNqSWzPs4NCXrf3CMgtnz08ocepQzM2/EXAsvq7fS5crKsgbaDo9KFnnNPksjiWoCE2h sWQ4QKMFGH7QHMkoSutC65z6kJ4zg2+N3jwEyxltuwOKjvviO9GiIOvbNBBmCOxO7Zgp zZ8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=amsgt90GLpsTEDNCAPObgIGpm3VGv61F2JwJ65wP1l4=; fh=cJcmi/dMkZFVhOIwQllvEhMV1yqHXUF2+BgX8QxaIaA=; b=EthFASSsKQ/q1mExFwDnNlIIdM05fH9mdhK+kF0j+ZpDczpTKiUzVL2byStxEl7ivs r8vhpD7lSTl9dTxj4qnSTzqXmZmkxcnXFNhaDTulDsMFFmt5tJlgFgLNyYjXTflkUIzV LXDaE30qn7ESHPkmEAIooSA9iPGEI4vBtL8VqRgFbPL6TbDLnbnB8rBWNsVhHXIFqjAC A76gusg6v3bCPTJiJhlmps2ko5hUjIOi4rMvWL7Nb+MPzn9ZvalCqGSF4y0ZGKrddHyo qeOOM/IY4hcjm2b6MIoYN5gK6Gnb3CX/cV/hHKW9RWmVwXjDTrp5Mb+NN2UDC/UkPSf4 rhVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=hrNhDVmN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id bq26-20020a056a000e1a00b006826c8d5a31si13148098pfb.21.2023.09.26.13.37.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 13:37:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=hrNhDVmN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 42BB6819803F; Tue, 26 Sep 2023 13:34:20 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235537AbjIZUeV (ORCPT + 99 others); Tue, 26 Sep 2023 16:34:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230447AbjIZUeU (ORCPT ); Tue, 26 Sep 2023 16:34:20 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF58B120 for ; Tue, 26 Sep 2023 13:34:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=amsgt90GLpsTEDNCAPObgIGpm3VGv61F2JwJ65wP1l4=; b=hrNhDVmNlk2GdYnWPgCVMrwflD 5kloi5SYkU8dfkwMjcfrSyz0r0+tnpDoWXvpiESUZUXpDMgCrFxkYjwUSsAen2g/4FTEFQRjLYxOs tVYISXmHxCuj7iBiy9wewL0NhQfAY349FdlbZE0zPm/+G6cjTLbb18E8K0HXUauqoykUZvz3Q6LHd dCJbjtSMFcte7ZKLIcRydTf1CnHDlnyAb6EdSjsH84lnV0C+KrVOvJWz50/YxdJO2o5mvmQgk4QUe 1o14H1tep3nKtRh3ktSKhpWZvLASQPGj4rGLz5N9Fuz40x65cIqSs/nard3bxsQdm4MW/o70r9CFU nPzdVR7w==; Received: from [50.53.46.231] (helo=[192.168.254.15]) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qlEkz-00H0J8-06; Tue, 26 Sep 2023 20:34:09 +0000 Message-ID: Date: Tue, 26 Sep 2023 13:34:08 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] include/linux/dcache.h: fix warning in doc comment Content-Language: en-US To: Nik Bune , Andrew Morton , Greg Kroah-Hartman , skhan@linuxfoundation.org, Jakub Kicinski , Jens Axboe , Alexander Viro , Christian Brauner Cc: linux-kernel@vger.kernel.org References: <20230926163631.116405-1-n2h9z4@gmail.com> From: Randy Dunlap In-Reply-To: <20230926163631.116405-1-n2h9z4@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Tue, 26 Sep 2023 13:34:20 -0700 (PDT) Hi, [adding VFS folks] On 9/26/23 09:36, Nik Bune wrote: > When run make htmldocs there is a warning appears > ./include/linux/dcache.h:311: warning: expecting prototype for dget, dget_dlock(). Prototype was for dget_dlock() instead > > The comment over the dget_dlock function describes both dget_dlock and dget functions. dget goes right after dget_dlock. > > Removed "dget" from dget_dlock function comment. > Copied the same block to the dget function below. > > > Signed-off-by: Nik Bune I was working on this one also, but yours is good as far as it goes. I was trying to differentiate between dget() and dget_dlock(). Something simple and short, like: in get(): dget() is used for the initial lockref on a dentry. and in dget_dlock(): dget_dlock() is used to increment the lockref count after the initial lockref is made. but I don't know how correct those comments are or how they should be improved. :( > --- > include/linux/dcache.h | 10 +++++++++- > 1 file changed, 9 insertions(+), 1 deletion(-) > > diff --git a/include/linux/dcache.h b/include/linux/dcache.h > index 6b351e009f59..47adb8dda4a9 100644 > --- a/include/linux/dcache.h > +++ b/include/linux/dcache.h > @@ -300,7 +300,7 @@ extern char *dentry_path(const struct dentry *, char *, int); > /* Allocation counts.. */ > > /** > - * dget, dget_dlock - get a reference to a dentry > + * dget_dlock - get a reference to a dentry > * @dentry: dentry to get a reference to > * > * Given a dentry or %NULL pointer increment the reference count > @@ -314,6 +314,14 @@ static inline struct dentry *dget_dlock(struct dentry *dentry) > return dentry; > } > > +/** > + * dget - get a reference to a dentry > + * @dentry: dentry to get a reference to > + * > + * Given a dentry or %NULL pointer increment the reference count > + * if appropriate and return the dentry. A dentry will not be > + * destroyed when it has references. > + */ > static inline struct dentry *dget(struct dentry *dentry) > { > if (dentry) -- ~Randy