Message ID | 20231220065931.2372-1-rdunlap@infradead.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-6444-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:24d3:b0:fb:cd0c:d3e with SMTP id r19csp2460657dyi; Tue, 19 Dec 2023 22:59:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IGvI4uKvxAsvm2MEqCB/4WoGs7OqPmaK4LarKvevdnOBF9VwrpuXVbsSqSok26G4s+Ou5LG X-Received: by 2002:a05:6214:621:b0:67f:1a6f:622a with SMTP id a1-20020a056214062100b0067f1a6f622amr6999548qvx.100.1703055590597; Tue, 19 Dec 2023 22:59:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703055590; cv=none; d=google.com; s=arc-20160816; b=yHAubx2KGPxFraZWvA8ysgRrtfVNdQ91El9GOSnHhEk4LSC8FxAaZpxV566ODycbzH 33YRW4DMDAnI7Z9RbvzOcnLLIlbb5f3RFRmYLUyvH88OK17Ixw3vH48Fw1mxtep1HBuZ duCHkStJZ8FwaI6vGZ2QVtJEWTm7/P8TiM7XdZKYqQTQb/X6KGmYW/toGyuzvdg5PI3M /H2oKn5fyv677elE60mgElP71SBwj+K18hX4cjtDr++hl58rYIqcQjmQct6XsQK64+YQ +H2tuIRiK4Vl64u5zYBvmKAqETvXCDSKl0Nf58DdhAmM6IiF6EVyFHzp8O2S5NhjrRfH F0ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=wiefhyyxdQ6+cVyIEandstncmSheKVNzQxTEt7IW79g=; fh=iLln0dUz0sOI8PkOWmR1oKKAqxjPA85ETZVwrtu44xQ=; b=UgcB95IdS6EFWPz4hA7xYMC/S/IQQD8aNf+nVwtGTD/ZIqXnOv6UG8GG6613buovHm 1x4fLfJS87QY+5VeR+YdICcuwro7Q3z088Sre6eP+t4rC4tQAQZfJYx4zcaqzasEq2yG XuWqGZnKHpz5sBSk48SXvT078UdI/fleWG8eAeMBHGcEUe7dTrqHQKyuSa4VcuMG9EMa g7tOZ/tn6ylchF++Mm1sH3Jbj3qmqxzaZeVOsR9GwLZLA3qj1wIDWvIAQSgLyplDw+ed b7tiKkb4fEa1suZMy17PKYD/8YtNlihSWj62oUMKTQYaJUjw8UxdH+Yp74uSAzTFSuOg GvqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=2INhNg9s; spf=pass (google.com: domain of linux-kernel+bounces-6444-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6444-ouuuleilei=gmail.com@vger.kernel.org" Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id f10-20020a0cbeca000000b0067eec318cb1si17997644qvj.288.2023.12.19.22.59.50 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 22:59:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-6444-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=2INhNg9s; spf=pass (google.com: domain of linux-kernel+bounces-6444-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6444-ouuuleilei=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 631F01C211CB for <ouuuleilei@gmail.com>; Wed, 20 Dec 2023 06:59:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8BDA414F98; Wed, 20 Dec 2023 06:59:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="2INhNg9s" X-Original-To: linux-kernel@vger.kernel.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 D9C63168A9; Wed, 20 Dec 2023 06:59:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=wiefhyyxdQ6+cVyIEandstncmSheKVNzQxTEt7IW79g=; b=2INhNg9suwi5GAzp9swSRhVD6R Mv9OiTfgp1DZKHL2ulgMJGFP4LQux5BoIzvOezYx0DtA1ZSphHQxK61kgbSfHMwPP4dGhEf4CMnvs jsSuLp26Jc7g6GM2AlHJSfliw8EaNrowDJlHGR9QqOoegkjzGq7pOi6TY3a9UhvRXzvHloDtymjYT RzPtxPrWG3KhccMBA5XFg8LjTrSMsU3wOYgXU2ZeB6IsiiM90g2IQoqBUlTSBIIbzNOhUVb6A8X09 izq8WIYlUCbsNN/5QiZDUJVd1js53FOXWLVY2TemjLpjtnvmu77riy8P4QS4qglHgo65mjRxnIfwL 30JDwsrQ==; Received: from [50.53.46.231] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1rFqYG-00GLf7-1W; Wed, 20 Dec 2023 06:59:32 +0000 From: Randy Dunlap <rdunlap@infradead.org> To: linux-kernel@vger.kernel.org Cc: Randy Dunlap <rdunlap@infradead.org>, Ryusuke Konishi <konishi.ryusuke@gmail.com>, linux-nilfs@vger.kernel.org Subject: [PATCH] nilfs2: cpfile: fix some kernel-doc warnings Date: Tue, 19 Dec 2023 22:59:31 -0800 Message-ID: <20231220065931.2372-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785783219177335380 X-GMAIL-MSGID: 1785783219177335380 |
Series |
nilfs2: cpfile: fix some kernel-doc warnings
|
|
Commit Message
Randy Dunlap
Dec. 20, 2023, 6:59 a.m. UTC
Correct the function parameter names for nilfs_cpfile_get_info():
cpfile.c:564: warning: Function parameter or member 'cnop' not described in 'nilfs_cpfile_get_cpinfo'
cpfile.c:564: warning: Function parameter or member 'mode' not described in 'nilfs_cpfile_get_cpinfo'
cpfile.c:564: warning: Function parameter or member 'buf' not described in 'nilfs_cpfile_get_cpinfo'
cpfile.c:564: warning: Function parameter or member 'cisz' not described in 'nilfs_cpfile_get_cpinfo'
cpfile.c:564: warning: Excess function parameter 'cno' description in 'nilfs_cpfile_get_cpinfo'
cpfile.c:564: warning: Excess function parameter 'ci' description in 'nilfs_cpfile_get_cpinfo'
This still leaves a few kernel-doc warnings.
Also, the function parameters should have descriptions after them.
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Ryusuke Konishi <konishi.ryusuke@gmail.com>
Cc: linux-nilfs@vger.kernel.org
---
fs/nilfs2/cpfile.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
Comments
On Wed, Dec 20, 2023 at 3:59 PM Randy Dunlap wrote: > > Correct the function parameter names for nilfs_cpfile_get_info(): > > cpfile.c:564: warning: Function parameter or member 'cnop' not described in 'nilfs_cpfile_get_cpinfo' > cpfile.c:564: warning: Function parameter or member 'mode' not described in 'nilfs_cpfile_get_cpinfo' > cpfile.c:564: warning: Function parameter or member 'buf' not described in 'nilfs_cpfile_get_cpinfo' > cpfile.c:564: warning: Function parameter or member 'cisz' not described in 'nilfs_cpfile_get_cpinfo' > cpfile.c:564: warning: Excess function parameter 'cno' description in 'nilfs_cpfile_get_cpinfo' > cpfile.c:564: warning: Excess function parameter 'ci' description in 'nilfs_cpfile_get_cpinfo' > > This still leaves a few kernel-doc warnings. > Also, the function parameters should have descriptions after them. > > Signed-off-by: Randy Dunlap <rdunlap@infradead.org> > Cc: Ryusuke Konishi <konishi.ryusuke@gmail.com> > Cc: linux-nilfs@vger.kernel.org > --- > fs/nilfs2/cpfile.c | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff -- a/fs/nilfs2/cpfile.c b/fs/nilfs2/cpfile.c > --- a/fs/nilfs2/cpfile.c > +++ b/fs/nilfs2/cpfile.c > @@ -554,8 +554,10 @@ static ssize_t nilfs_cpfile_do_get_ssinf > /** > * nilfs_cpfile_get_cpinfo - > * @cpfile: > - * @cno: > - * @ci: > + * @cnop: > + * @mode: > + * @buf: > + * @cisz: > * @nci: > */ > Ah, thank you for pointing it out. I would like to fill in the missing descriptions and send it upstream. Thanks, Ryusuke Konishi
On 12/19/23 23:25, Ryusuke Konishi wrote: > On Wed, Dec 20, 2023 at 3:59 PM Randy Dunlap wrote: >> >> Correct the function parameter names for nilfs_cpfile_get_info(): >> >> cpfile.c:564: warning: Function parameter or member 'cnop' not described in 'nilfs_cpfile_get_cpinfo' >> cpfile.c:564: warning: Function parameter or member 'mode' not described in 'nilfs_cpfile_get_cpinfo' >> cpfile.c:564: warning: Function parameter or member 'buf' not described in 'nilfs_cpfile_get_cpinfo' >> cpfile.c:564: warning: Function parameter or member 'cisz' not described in 'nilfs_cpfile_get_cpinfo' >> cpfile.c:564: warning: Excess function parameter 'cno' description in 'nilfs_cpfile_get_cpinfo' >> cpfile.c:564: warning: Excess function parameter 'ci' description in 'nilfs_cpfile_get_cpinfo' >> >> This still leaves a few kernel-doc warnings. >> Also, the function parameters should have descriptions after them. >> >> Signed-off-by: Randy Dunlap <rdunlap@infradead.org> >> Cc: Ryusuke Konishi <konishi.ryusuke@gmail.com> >> Cc: linux-nilfs@vger.kernel.org >> --- >> fs/nilfs2/cpfile.c | 6 ++++-- >> 1 file changed, 4 insertions(+), 2 deletions(-) >> >> diff -- a/fs/nilfs2/cpfile.c b/fs/nilfs2/cpfile.c >> --- a/fs/nilfs2/cpfile.c >> +++ b/fs/nilfs2/cpfile.c >> @@ -554,8 +554,10 @@ static ssize_t nilfs_cpfile_do_get_ssinf >> /** >> * nilfs_cpfile_get_cpinfo - >> * @cpfile: >> - * @cno: >> - * @ci: >> + * @cnop: >> + * @mode: >> + * @buf: >> + * @cisz: >> * @nci: >> */ >> > > Ah, thank you for pointing it out. > > I would like to fill in the missing descriptions and send it upstream. Yes, please do. Thanks.
diff -- a/fs/nilfs2/cpfile.c b/fs/nilfs2/cpfile.c --- a/fs/nilfs2/cpfile.c +++ b/fs/nilfs2/cpfile.c @@ -554,8 +554,10 @@ static ssize_t nilfs_cpfile_do_get_ssinf /** * nilfs_cpfile_get_cpinfo - * @cpfile: - * @cno: - * @ci: + * @cnop: + * @mode: + * @buf: + * @cisz: * @nci: */