Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2222069pxb; Fri, 25 Mar 2022 13:20:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyu+9IOI1KX4znIGiTFzRCfzIwrLfphsvmD5owhlo8X9TA6GxDkbUhZQ1mJrgn01IYQ1n8N X-Received: by 2002:a17:902:d506:b0:154:377b:a38c with SMTP id b6-20020a170902d50600b00154377ba38cmr13264198plg.100.1648239604248; Fri, 25 Mar 2022 13:20:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648239604; cv=none; d=google.com; s=arc-20160816; b=Xv6+IHyyCHMPgAsTq08fvowrijNfgYQhNo+Axds/qgWiQViWEgoqSooXIN8se50Vn2 xZVbulNZfsfc6t/rhpEJxxw0b6G9Z/EexZA1WPIaYwA6kdsxkNVwvSPioDRlO74iJD9V itOSU34zjYRALavi9xTrl+NBhZglNbMlMo/GEgBdKhu3EZg86dZCb/7TTKn6En+UtmNa YmdxAXgAvhAoFvww+vP+PiukvBPbD4qh9p4V39FUTsJjOTX2qSCMt12FzDh7VqMRdH3t YD5YBgOGLVcQX6Rv+Onsd13iaW1dw6OuSbv+fOuqXG32ZMxFwyYr2mnr+TcfCcy71/bI jtoQ== 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=HnC8aFOOFn7MDBi7vy5IeoTMFra3yf+9kseb71kgxnI=; b=xJKENI6+vy0/KdL1AekGzEycyyirgAJ8O7SUhrg5RoBKm4mdVdWZd6M64m5CwS7LRk gwZYCLmNMj4MNqWgseUxnTZnhZOuEq5+6BRgLU9NAUbMR+DCvJ4IhywsvbBG+4nbsNhE uWHPRN0WMWGxqwcj6w22Ug+DppzsKbXH6Y2Hd6crBkMFHf6qhXegmfOuNMiA5NBoKY3z zrq1N//0BGEFs1ViyPDMKWoAK/d9mZEE/vmmd5ZV1IUHGRaxTbkOXZ4MgPDDtVMfrPtS +RUmBR+QROypiF3XKUUGwdo3H3kKeHU6GXvSXmo4vSTlGgZPftFGbCmj7DWaXbSLX/al iOug== 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:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id pc2-20020a17090b3b8200b001bd14e0307asi4126733pjb.82.2022.03.25.13.20.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 13:20:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3849922FD81; Fri, 25 Mar 2022 12:15:46 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347831AbiCXCnx (ORCPT + 99 others); Wed, 23 Mar 2022 22:43:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347826AbiCXCnw (ORCPT ); Wed, 23 Mar 2022 22:43:52 -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 C8047939DF; Wed, 23 Mar 2022 19:42:20 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R811e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e01424;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0V82lYat_1648089737; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0V82lYat_1648089737) by smtp.aliyun-inc.com(127.0.0.1); Thu, 24 Mar 2022 10:42:18 +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 v2] fs: Fix some kernel-doc comments Date: Thu, 24 Mar 2022 10:42:15 +0800 Message-Id: <20220324024215.63479-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=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=no 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 --- --Changes in v2: Modified description of @flags in nilfs_dirty_inode() kernel-doc comment fs/nilfs2/inode.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/fs/nilfs2/inode.c b/fs/nilfs2/inode.c index 476a4a649f38..ae0afc6a30bb 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,7 @@ 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: flags to determine the dirty state of the inode * * 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