Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp678498rdb; Tue, 5 Dec 2023 17:26:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IF30tmBmiXtrZAZ3koReLN63R6yVz5xUsLxt+4lRp7xoMgumnhy53jOL8tiRJbcXngBOIXl X-Received: by 2002:a17:90a:c086:b0:286:6cc1:2cc9 with SMTP id o6-20020a17090ac08600b002866cc12cc9mr118127pjs.83.1701826008289; Tue, 05 Dec 2023 17:26:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701826008; cv=none; d=google.com; s=arc-20160816; b=L2tU3KFy4VaDhBsBkGu9IIVP91SFqaffMRBS2RNC+pwXrB8QjpjsEcOFzacVAGd5u7 qbcTlzwHIMXzT5kOJLqRv8JDJdnNdIo1uqJMlzQmwR4tQqmop5NSlV0XP/hOagasShmR Ds0PZ9csmrWE4i5SbzmrubCMYsiUnStAWysnUb6kvT3ex+Tf/K4g/XDSdEUsHbiWcEUJ D2dUBEvzqvSmDOR0BNwElX5nj0EXTQMVHfXAseC7qSkckKkJw5iMZ70DfowqaO/ya5yE /jgBfZ5JtVSg46l3vv65OPFrI/M4BGlEp6jcmbOqkC0yTTp/hbLEMe8blLRdU/69iwGG 4GBg== 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 :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=G6UUyuDpEoKccGXfgNkjScDMw13f1tQzniuc2FBEoZk=; fh=Uyc4/vGWZmTMj3Rwvc1Mp2OlGnRzbWUJtOhtKHAbEtA=; b=p5UBfJ0GxVMyQ6wxyZH1EMNnLdOmK4iP6T7TfSoYORW1JVOHFedJGxoDKwVnnkmVgA beBZ5uMsum8J8fPxco+KO92N62mECisXBKs7FmBI7HrVEjBm0euSnKA2XxmrvyXsMUjG 8vNlNlPqgRqamRST3FHkxls+M7c3Zi/2Pkr47ekCanbV43HYRe1qtMqgt9OfPf3GDjxG kRjXDBDf9+HdkLcSfxKuc3DAuTcWotYy3NciXqz97PiBBel4ZusIhncKM85QcRSV3vsf Sw8AU2+yzuufgyEt4rsuXeWCTTxiSF2vvlk9gEUurEdkQSeXtFIZJozTu0SxpVOu2ecI Sx9Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id lb2-20020a17090b4a4200b002858a23002asi5432579pjb.20.2023.12.05.17.26.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 17:26:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 4E985804566A; Tue, 5 Dec 2023 17:26:45 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376399AbjLFB0S (ORCPT + 99 others); Tue, 5 Dec 2023 20:26:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232402AbjLFB0M (ORCPT ); Tue, 5 Dec 2023 20:26:12 -0500 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56E29D62 for ; Tue, 5 Dec 2023 17:26:17 -0800 (PST) Received: from kwepemm000013.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4SlKTr24ggzvRhL; Wed, 6 Dec 2023 09:25:36 +0800 (CST) Received: from [10.174.178.46] (10.174.178.46) by kwepemm000013.china.huawei.com (7.193.23.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Wed, 6 Dec 2023 09:26:14 +0800 Subject: Re: [PATCH] jffs2: nodemgmt: fix kernel-doc comments To: Randy Dunlap , CC: David Woodhouse , Richard Weinberger , References: <20231205173222.12575-1-rdunlap@infradead.org> From: Zhihao Cheng Message-ID: Date: Wed, 6 Dec 2023 09:26:13 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <20231205173222.12575-1-rdunlap@infradead.org> Content-Type: text/plain; charset="gbk"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.174.178.46] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To kwepemm000013.china.huawei.com (7.193.23.81) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Tue, 05 Dec 2023 17:26:45 -0800 (PST) ?? 2023/12/6 1:32, Randy Dunlap ะด??: > Update the end of one sentence where a comment was truncated. (dwmw2) > > Fix a bunch of kernel-doc warnings: > > nodemgmt.c:72: warning: Function parameter or member 'sumsize' not described in 'jffs2_do_reserve_space' > nodemgmt.c:72: warning: expecting prototype for jffs2_reserve_space(). Prototype was for jffs2_do_reserve_space() instead > nodemgmt.c:76: warning: Function parameter or member 'sumsize' not described in 'jffs2_reserve_space' > nodemgmt.c:76: warning: No description found for return value of 'jffs2_reserve_space' > nodemgmt.c:503: warning: Function parameter or member 'ofs' not described in 'jffs2_add_physical_node_ref' > nodemgmt.c:503: warning: Function parameter or member 'ic' not described in 'jffs2_add_physical_node_ref' > nodemgmt.c:503: warning: Excess function parameter 'new' description in 'jffs2_add_physical_node_ref' > nodemgmt.c:503: warning: No description found for return value of 'jffs2_add_physical_node_ref' > > Signed-off-by: Randy Dunlap > Cc: David Woodhouse > Cc: Richard Weinberger > Cc: linux-mtd@lists.infradead.org > --- > fs/jffs2/nodemgmt.c | 24 +++++++++++++++--------- > 1 file changed, 15 insertions(+), 9 deletions(-) Reviewed-by: Zhihao Cheng > diff -- a/fs/jffs2/nodemgmt.c b/fs/jffs2/nodemgmt.c > --- a/fs/jffs2/nodemgmt.c > +++ b/fs/jffs2/nodemgmt.c > @@ -49,28 +49,31 @@ static int jffs2_rp_can_write(struct jff > return 0; > } > > +static int jffs2_do_reserve_space(struct jffs2_sb_info *c, uint32_t minsize, > + uint32_t *len, uint32_t sumsize); > + > /** > * jffs2_reserve_space - request physical space to write nodes to flash > * @c: superblock info > * @minsize: Minimum acceptable size of allocation > * @len: Returned value of allocation length > * @prio: Allocation type - ALLOC_{NORMAL,DELETION} > + * @sumsize: summary size requested or JFFS2_SUMMARY_NOSUM_SIZE for no summary > + * > + * Requests a block of physical space on the flash. > * > - * Requests a block of physical space on the flash. Returns zero for success > - * and puts 'len' into the appropriate place, or returns -ENOSPC or other > - * error if appropriate. Doesn't return len since that's > + * Returns: %0 for success and puts 'len' into the appropriate place, > + * or returns -ENOSPC or other error if appropriate. > + * Doesn't return len since that's already returned in @len. > * > - * If it returns zero, jffs2_reserve_space() also downs the per-filesystem > + * If it returns %0, jffs2_reserve_space() also downs the per-filesystem > * allocation semaphore, to prevent more than one allocation from being > - * active at any time. The semaphore is later released by jffs2_commit_allocation() > + * active at any time. The semaphore is later released by jffs2_commit_allocation(). > * > * jffs2_reserve_space() may trigger garbage collection in order to make room > * for the requested allocation. > */ > > -static int jffs2_do_reserve_space(struct jffs2_sb_info *c, uint32_t minsize, > - uint32_t *len, uint32_t sumsize); > - > int jffs2_reserve_space(struct jffs2_sb_info *c, uint32_t minsize, > uint32_t *len, int prio, uint32_t sumsize) > { > @@ -488,13 +491,16 @@ static int jffs2_do_reserve_space(struct > /** > * jffs2_add_physical_node_ref - add a physical node reference to the list > * @c: superblock info > - * @new: new node reference to add > + * @ofs: offset in the block > * @len: length of this physical node > + * @ic: inode cache pointer > * > * Should only be used to report nodes for which space has been allocated > * by jffs2_reserve_space. > * > * Must be called with the alloc_sem held. > + * > + * Returns: pointer to new node on success or -errno code on error > */ > > struct jffs2_raw_node_ref *jffs2_add_physical_node_ref(struct jffs2_sb_info *c, > > ______________________________________________________ > Linux MTD discussion mailing list > http://lists.infradead.org/mailman/listinfo/linux-mtd/ > .