Received: by 2002:ab2:7041:0:b0:1f4:bcc8:f211 with SMTP id x1csp146537lql; Fri, 12 Apr 2024 06:29:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUUOGP4u7U+6KgxLO3o++mvR536Um9wxFQuUBnu7c6jmv1HrKQ3aQq8FVm1nGmWte+Ege3KhFKA82f6CtrYVrIVCwbA9W9pXgPHjNOS/w== X-Google-Smtp-Source: AGHT+IEmQnr8PwrpxCXoPoPuRAsCpE+Vul5dJe+nVvIQKrw3hIu8Oj8Ao+C+SljEbHX9FdRwQYvM X-Received: by 2002:a05:622a:15d4:b0:432:e65e:bacc with SMTP id d20-20020a05622a15d400b00432e65ebaccmr2801923qty.58.1712928591476; Fri, 12 Apr 2024 06:29:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712928591; cv=pass; d=google.com; s=arc-20160816; b=jaafI7o3T9vPijH3MmNk9onu+YPBNFS2PWd4CkJmFvyX9xBu51ffC9kvYUsiL7aUiq O7vaO3YwGfuJOcS0TbJ/I689VKNDZE021PXhQFBkU9C1gFTvR+LAZC32l3sSUcM5fPSQ GFc+Khg/arGplLC9NgBfptmNQ3lQqt5pcIBW3qtnM/fsRzcYa7wg65YUUwlVRj6eZwMW pfJZ/1QdW4FFD5MpU+wOkKABWQMfbPt52e/VI3keA4cpBJ0G9L9Y2AS4TGxgvE6z8Kqn NoUMv3Iiio0cE6h6mYawTBlOxYhScqCLWME/7RxyoJZ9d4pJKUjG+14HU4jRZZCcIYZJ a5sA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:subject:cc:to:from:date:user-agent:message-id; bh=r5tMj19gi8qPvSoDmeYVRO0iz2bcHMrwAU20yqDb5ag=; fh=BKH3lwXS0Cw/qwIzUDzp4E7B5pkhoWldSPs+8N6Lc6g=; b=EyANoClkx10BUbmDP6ngtTMvAcVZvsAk5PnK8pcDlzUtECYZBa+cQuxhuwltyyaJvA cFPjzpYHNY40sxsubm93QhC6QW0Tby1ckYmeiCOTGCtPok1OnNLvdLKxZskwtQ90IFIE vLah6YcL36wW+4ksYZ15VX1406NgY7FfjL6A/6f+GGnKjY+Ew7QoThJfPJSCJbYwHJTa w1uNz32lWNdKdOmUrJ6r1hIMuNRD1vVfbFBtk47qdo3Us8TJU3XEse6B38MQUbd2Za7/ JpgcXjhxZRSE7GN+OSdc70rq7VfBBln3NTYmJXCXZYzIYCr5vluobxVGl/COBFCWhdB3 BbnQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-142725-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142725-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id y3-20020ac81283000000b00431627efa14si3473275qti.411.2024.04.12.06.29.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 06:29:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-142725-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-142725-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142725-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 324301C21043 for ; Fri, 12 Apr 2024 13:29:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4C4DD82C76; Fri, 12 Apr 2024 13:29:33 +0000 (UTC) Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B4F85824A8 for ; Fri, 12 Apr 2024 13:29:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712928572; cv=none; b=HC1eNa1jR9ZHWjYG7TtF6+EC9fIUYeP/6ujKkAlz2RzWmI2DRMC4bGn7oGlw5l8eeeyFInxj5WUfUiXuF/2zS08IJKKpEJud2hjrYy2XNqn/paTlXqbveUw2zvKHTFM9/esxFC+QaEHakVC0ux48Fzmwdrwdgk1NtPRriyUzr5w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712928572; c=relaxed/simple; bh=ANIJRUlQz6LQ5jbf92Mbu1AsZcgEwSE3Z9aKa1ZENwQ=; h=Message-ID:Date:From:To:Cc:Subject:References:MIME-Version: Content-Type; b=eIxFOhPNv5enKx+utBLljNLKoJIwuSi5Nl3GdBMIEeJLqPzLkslAOP8k3nAC1KHeet0v/7hoeZ9MLq1jTjQiP+yAY2q/En8mg0sgYyhSXQK2hAIjH/u+A8vBHxX3gk11DUEs1uPf+fpTpT2Dpcp33zL4tU1F8wi7Wy26iMrIovk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4DE99C3277B; Fri, 12 Apr 2024 13:29:32 +0000 (UTC) Received: from rostedt by gandalf with local (Exim 4.97) (envelope-from ) id 1rvH0n-000000012pR-45QV; Fri, 12 Apr 2024 09:32:13 -0400 Message-ID: <20240412133213.834390718@goodmis.org> User-Agent: quilt/0.67 Date: Fri, 12 Apr 2024 09:31:53 -0400 From: Steven Rostedt To: linux-kernel@vger.kernel.org Cc: Masami Hiramatsu , Mark Rutland , Mathieu Desnoyers , Andrew Morton , Yang Li Subject: [for-linus][PATCH 1/4] eventfs: Fix kernel-doc comments to functions References: <20240412133152.723632549@goodmis.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 From: Yang Li This commit fix kernel-doc style comments with complete parameter descriptions for the lookup_file(),lookup_dir_entry() and lookup_file_dentry(). Link: https://lore.kernel.org/linux-trace-kernel/20240322062604.28862-1-yang.lee@linux.alibaba.com Signed-off-by: Yang Li Signed-off-by: Steven Rostedt (Google) --- fs/tracefs/event_inode.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/fs/tracefs/event_inode.c b/fs/tracefs/event_inode.c index dc067eeb6387..894c6ca1e500 100644 --- a/fs/tracefs/event_inode.c +++ b/fs/tracefs/event_inode.c @@ -336,6 +336,7 @@ static void update_inode_attr(struct dentry *dentry, struct inode *inode, /** * lookup_file - look up a file in the tracefs filesystem + * @parent_ei: Pointer to the eventfs_inode that represents parent of the file * @dentry: the dentry to look up * @mode: the permission that the file should have. * @attr: saved attributes changed by user @@ -389,6 +390,7 @@ static struct dentry *lookup_file(struct eventfs_inode *parent_ei, /** * lookup_dir_entry - look up a dir in the tracefs filesystem * @dentry: the directory to look up + * @pei: Pointer to the parent eventfs_inode if available * @ei: the eventfs_inode that represents the directory to create * * This function will look up a dentry for a directory represented by @@ -478,16 +480,20 @@ void eventfs_d_release(struct dentry *dentry) /** * lookup_file_dentry - create a dentry for a file of an eventfs_inode + * @dentry: The parent dentry under which the new file's dentry will be created * @ei: the eventfs_inode that the file will be created under * @idx: the index into the entry_attrs[] of the @ei - * @parent: The parent dentry of the created file. - * @name: The name of the file to create * @mode: The mode of the file. * @data: The data to use to set the inode of the file with on open() * @fops: The fops of the file to be created. * - * Create a dentry for a file of an eventfs_inode @ei and place it into the - * address located at @e_dentry. + * This function creates a dentry for a file associated with an + * eventfs_inode @ei. It uses the entry attributes specified by @idx, + * if available. The file will have the specified @mode and its inode will be + * set up with @data upon open. The file operations will be set to @fops. + * + * Return: Returns a pointer to the newly created file's dentry or an error + * pointer. */ static struct dentry * lookup_file_dentry(struct dentry *dentry, -- 2.43.0