Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp459291rwb; Thu, 18 Aug 2022 06:53:52 -0700 (PDT) X-Google-Smtp-Source: AA6agR7YyDR0waYPU+sNAGCrSMw16nf6JgI2rwAGhO6D9Ac8voA+czujVq2/b1iK4dZpslg3yZQh X-Received: by 2002:a17:902:d509:b0:16f:1e1:2063 with SMTP id b9-20020a170902d50900b0016f01e12063mr2642144plg.131.1660830832609; Thu, 18 Aug 2022 06:53:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660830832; cv=none; d=google.com; s=arc-20160816; b=qp98lkGLzBjbPOgMQ5mro3ycnFkYKUBbuJzc8pdUeuc9TgHp76LAvMd/Qo/JtOFAxm Pauws7i19HZqm0aKUlXINoL5RYbezeyQJ29iQuuBYkEi9XxbfsrMSLa7z2fc1SG11A1B pBmN0Nm3CwWFcXi9RWeExgjrnfIGOr4lS6sHtUK/9a16ZEW8RbwczD4d3QK1S5Aog4Om HBwMEeMYQlmQVkfyLZtacWVeR4MbGXzq/l/xW4EEU2/IVwxFjOFFJINmN8AuLuHqCq4u Ukek/dsnAGZMO3rlgmDY9w62yNBoYpN/DQodBNe/7DWE+j0h9DaoJegW3qOoRwxGiH3+ oYLQ== 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:date:subject:cc:to:from :dkim-signature; bh=3867ZMhOWK+UgiB4mnzodQ0YHlfwUKuJXinX1kZfw6A=; b=MKpXR5ORweUShnjBQb9+DgtpPUfe8oqbCi2UmVeBg3EBRI0xXbi5PVBkIUuYd82yKi qR92/y1kq7pGnDQFSMhav2PwLGsjcXpyXaxjes1XrcF1Lsj0TNN+jVHYEPZuTImfmI3o 0LsHOzN9nrWydQ66FpMW80iw1Cg4eAcPD5YRBprq8yv0IVbS7HtBvPy/ZM0ye1eW3LGY XwuHv9AP4BzRpK8N/IUyAW1Je2QLor5jc78ng6Y8HogOvfN+480AVnntulCrBQ3kA85n CoV3TihLAsawGhIXVnP8MvYg7LvtzW3axUD5IcU4ZM4rLzPTm/5MEC8J61oL48CbGr9n pEJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PTaFOkjH; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d15-20020a170902aa8f00b00172b6a88428si777379plr.24.2022.08.18.06.53.40; Thu, 18 Aug 2022 06:53:52 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=PTaFOkjH; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245101AbiHRNkX (ORCPT + 99 others); Thu, 18 Aug 2022 09:40:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245144AbiHRNjM (ORCPT ); Thu, 18 Aug 2022 09:39:12 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 802985AC7F; Thu, 18 Aug 2022 06:39:10 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D4C77616C6; Thu, 18 Aug 2022 13:39:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CA50DC4315D; Thu, 18 Aug 2022 13:39:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660829947; bh=88BIzikTkD6g/4hks5fn4fU/mpPMY8uzoxDnFybpsys=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PTaFOkjHzurVV3Tb/YV8czaY695Zf+l3dMmGduldqbhO75P0wI7P1i09Zz2CVFZyI 6kG4CqYv4eX2vytjODKqCA/QZw2G+CVhAImouywlYvf4CNx2jCZt1m9xylUxsL2Ny0 1GQBD8kqb9Q7IN3whc81R4sPwl/6z/HUYxWK90Pio2gfT1dw7k4Wj2gPa08SJLqrv9 ebeCeBX2sQN7yVTcCq0lCPAsVxiZOj8RLP9Yh3UltQBlSmQKE/o6J1E+bvBAcWQFth qOFUy2HKz376fkmLzn8Tx93uWxb8zD0kzc1/SC+d5vjXwy+HTn3udjzKoAYMav5YUY MD1NoAtpgdVxA== Received: from mchehab by mail.kernel.org with local (Exim 4.95) (envelope-from ) id 1oOfjl-00AY81-MM; Thu, 18 Aug 2022 15:39:05 +0200 From: Mauro Carvalho Chehab To: Linux Doc Mailing List , corbet@lwn.net Cc: Mauro Carvalho Chehab , Andrew Morton , Ilya Dryomov , Luis Chamberlain , Sebastian Andrzej Siewior , Xiubo Li , linux-kernel@vger.kernel.org Subject: [PATCH 13/13] fs/dcache: fix a kernel-doc markup Date: Thu, 18 Aug 2022 15:38:59 +0200 Message-Id: <9d2676a83ebee327b97b82f3c2ab76a2e53756d1.1660829433.git.mchehab@kernel.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,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 There's no such thing of using the same kernel-doc markup for multiple functions. Trying to be creative using a single one with a comma meant for it to serve two functions will do the wrong thing and produce a warning: ./include/linux/dcache.h:310: warning: expecting prototype for dget, dget_dlock(). Prototype was for dget_dlock() instead Address it by duplicating the comment. Yet, it probably makes sense to explain when/why someone has to use each variant of it. Signed-off-by: Mauro Carvalho Chehab --- See [PATCH 00/13] at: https://lore.kernel.org/all/cover.1660829433.git.mchehab@kernel.org/ 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 92c78ed02b54..5f254284bb83 100644 --- a/include/linux/dcache.h +++ b/include/linux/dcache.h @@ -299,7 +299,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 @@ -313,6 +313,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) -- 2.37.1