Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1275624pxb; Thu, 24 Mar 2022 16:40:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzc3Ihtn22d6kl3RJW2aSyRIUwV6/0w7aT9Ucu5XAzl6s23mrUZKxk/7UYUn4alM/vd/8/D X-Received: by 2002:a63:656:0:b0:385:f723:5245 with SMTP id 83-20020a630656000000b00385f7235245mr5890784pgg.496.1648165241394; Thu, 24 Mar 2022 16:40:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648165241; cv=none; d=google.com; s=arc-20160816; b=X8EMFKsPYL2Dgb7cbk0nePk3ZqCMZwOXIf+AQV+PSwMQs+XhRTygz9L3pYdyl54AQo +4VFumpoiyzHVZhnglIeUXScXpCntHBnqkcjmJ3erEcI/ML21iy+LPBz6VDzhz8av3XD nw7Z1/VWpEO3kZz4kJnGWvs44ag2S3OIGjW46hW+BZ3a1XN19VBZ05bazcBqAtOTO73q nNFfGj2I7I5eE2I7DeTmc5hNtwGzf6Lwni0jUtEoT/+rNdTDTJ+ZRuDLQPD7LpkA9JTJ ifPuQugm5BnTc78QETy08Z0c6PXW+iELTJnjXXb3wWvm+oOG5aPpjFb/5sWbu8a7jzoI h74A== 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 :message-id:date:subject:cc:to:from; bh=pRHDnaRMBs2T0JSBI17kOCKg36h0IgCh8cVMFLpAD4E=; b=qMO168YFL11PEVbwIqs7iOihoGm50XPJnW0Qgyus6fPxTn8J+eytjEJWivJiJptBUO QFiL3ZCLoVZYDQhq7E2/o3uddnuOLShkBD8bkgVN8EFN7ZS0U6O1oteMMjz0K+hyWduE fV7g99Fi8zgFRUEUTzLKuaiJ3cdFUp7o12HZGr8grEdadwXeOoNT6FUVxuLbCiNf1Zwf ySAFh7e/5MxPIgIAV3+P0PeTr/RQQiAwXkOK0CH8JoRWS4R2ePxMmmBu6srQFr2i71iJ +lucy4LzrVdJqI5QCH+ktqTJlTOUw+Ux0atj1O+gPvE8kZh9w1FK74veQKi5qqIDy9a1 yuQA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b12-20020a631b0c000000b00381b8708c12si657952pgb.636.2022.03.24.16.40.27; Thu, 24 Mar 2022 16:40:41 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346776AbiCXAbh (ORCPT + 99 others); Wed, 23 Mar 2022 20:31:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241068AbiCXAbg (ORCPT ); Wed, 23 Mar 2022 20:31:36 -0400 Received: from out30-45.freemail.mail.aliyun.com (out30-45.freemail.mail.aliyun.com [115.124.30.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A43A887B3; Wed, 23 Mar 2022 17:30:04 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R441e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04407;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0V81tl.v_1648081801; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0V81tl.v_1648081801) by smtp.aliyun-inc.com(127.0.0.1); Thu, 24 Mar 2022 08:30:02 +0800 From: Yang Li To: konishi.ryusuke@gmail.com Cc: linux-nilfs@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Li , Abaci Robot Subject: [PATCH -next] fs: Fix some kernel-doc comments Date: Thu, 24 Mar 2022 08:29:59 +0800 Message-Id: <20220324002959.48592-1-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL 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 The description of @flags in nilfs_dirty_inode() kernel-doc comment is missing, and some functions had kernel-doc that used a hash instead of a colon to separate the parameter name from the one line description. Fix them to remove some warnings found by running scripts/kernel-doc, which is caused by using 'make W=1'. fs/nilfs2/inode.c:73: warning: Function parameter or member 'inode' not described in 'nilfs_get_block' fs/nilfs2/inode.c:73: warning: Function parameter or member 'blkoff' not described in 'nilfs_get_block' fs/nilfs2/inode.c:73: warning: Function parameter or member 'bh_result' not described in 'nilfs_get_block' fs/nilfs2/inode.c:73: warning: Function parameter or member 'create' not described in 'nilfs_get_block' fs/nilfs2/inode.c:145: warning: Function parameter or member 'file' not described in 'nilfs_readpage' fs/nilfs2/inode.c:145: warning: Function parameter or member 'page' not described in 'nilfs_readpage' fs/nilfs2/inode.c:968: warning: Function parameter or member 'flags' not described in 'nilfs_dirty_inode' Reported-by: Abaci Robot Signed-off-by: Yang Li --- fs/nilfs2/inode.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/fs/nilfs2/inode.c b/fs/nilfs2/inode.c index 476a4a649f38..eb1ba17acb0b 100644 --- a/fs/nilfs2/inode.c +++ b/fs/nilfs2/inode.c @@ -59,10 +59,10 @@ void nilfs_inode_sub_blocks(struct inode *inode, int n) /** * nilfs_get_block() - get a file block on the filesystem (callback function) - * @inode - inode struct of the target file - * @blkoff - file block number - * @bh_result - buffer head to be mapped on - * @create - indicate whether allocating the block or not when it has not + * @inode: inode struct of the target file + * @blkoff: file block number + * @bh_result: buffer head to be mapped on + * @create: indicate whether allocating the block or not when it has not * been allocated yet. * * This function does not issue actual read request of the specified data @@ -138,8 +138,8 @@ int nilfs_get_block(struct inode *inode, sector_t blkoff, /** * nilfs_readpage() - implement readpage() method of nilfs_aops {} * address_space_operations. - * @file - file struct of the file to be read - * @page - the page to be read + * @file: file struct of the file to be read + * @page: the page to be read */ static int nilfs_readpage(struct file *file, struct page *page) { @@ -957,6 +957,8 @@ int __nilfs_mark_inode_dirty(struct inode *inode, int flags) /** * nilfs_dirty_inode - reflect changes on given inode to an inode block. * @inode: inode of the file to be registered. + * @flags: tell the filesystem if we just updated timestamp(I_DIRTY_SYNC) + * or anything else * * nilfs_dirty_inode() loads a inode block containing the specified * @inode and copies data from a nilfs_inode to a corresponding inode -- 2.20.1.7.g153144c