Netdev List
 help / color / mirror / Atom feed
* [PATCH] net/9p: client.h: clean up kernel-doc warnings
@ 2026-11-23  0:44 Randy Dunlap
  2026-11-23  0:59 ` Dominique Martinet
  0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2026-11-23  0:44 UTC (permalink / raw)
  To: linux-fsdevel, netdev
  Cc: Randy Dunlap, Aneesh Kumar K.V, Eric Van Hensbergen,
	Latchesar Ionkov, Dominique Martinet, Christian Schoenebeck, v9fs

Repair all kernel-doc warnings:

Warning: include/net/9p/client.h:52 Enum value 'BeginDisconnect' not described in enum 'p9_trans_status'
Warning: include/net/9p/client.h:90 struct member 'refcount' not described in 'p9_req_t'
Warning: include/net/9p/client.h:132 struct member 'fcall_cache' not described in 'p9_client'
Warning: include/net/9p/client.h:132 struct member 'trans_opts' not described in 'p9_client'
Warning: include/net/9p/client.h:147 expecting prototype for struct p9_fd_opts. Prototype was for struct p9_client_opts instead
Warning: include/net/9p/client.h:243 enum fid_source { FID_FROM_OTHER, FID_FROM_INODE, FID_FROM_DENTRY, }; error: Cannot parse struct or union!

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
---
Cc: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Cc: Eric Van Hensbergen <ericvh@kernel.org>
Cc: Latchesar Ionkov <lucho@ionkov.net>
Cc: Dominique Martinet <asmadeus@codewreck.org>
Cc: Christian Schoenebeck <linux_oss@crudebyte.com>
Cc: v9fs@lists.linux.dev

 include/net/9p/client.h |   22 ++++++++++++++--------
 1 file changed, 14 insertions(+), 8 deletions(-)

--- linux-next-20261120.orig/include/net/9p/client.h
+++ linux-next-20261120/include/net/9p/client.h
@@ -38,6 +38,7 @@ enum p9_proto_versions {
 /**
  * enum p9_trans_status - different states of underlying transports
  * @Connected: transport is connected and healthy
+ * @BeginDisconnect: beginning transition to @Disconnected
  * @Disconnected: transport has been disconnected
  * @Hung: transport is connected by wedged
  *
@@ -75,6 +76,7 @@ enum p9_req_status_t {
  * struct p9_req_t - request slots
  * @status: status of this request slot
  * @t_err: transport error
+ * @refcount: request refcount
  * @wq: wait_queue for the client to block on for this request
  * @tc: the request fcall structure
  * @rc: the response fcall structure
@@ -98,6 +100,8 @@ struct p9_req_t {
  * @trans_mod: module API instantiated with this client
  * @status: connection state
  * @trans: transport instance state and API
+ * @fcall_cache: per-client fcall kmem cache
+ * @trans_opts: union of struct fd, struct tcp
  * @fids: All active FID handles
  * @reqs: All active requests.
  * @name: node name used as client id
@@ -137,9 +141,9 @@ struct p9_client {
 };
 
 /**
- * struct p9_fd_opts - holds client options during parsing
+ * struct p9_client_opts - holds client options during parsing
  * @msize: maximum data size negotiated by protocol
- * @prot-Oversion: 9P protocol version to use
+ * @proto_version: 9P protocol version to use
  * @trans_mod: module API instantiated with this client
  *
  * These parsed options get transferred into client in
@@ -228,25 +232,27 @@ struct v9fs_context {
 	struct p9_session_opts	session_opts;
 };
 
+enum fid_source {
+	FID_FROM_OTHER,
+	FID_FROM_INODE,
+	FID_FROM_DENTRY,
+};
+
 /**
  * struct p9_fid - file system entity handle
  * @clnt: back pointer to instantiating &p9_client
  * @fid: numeric identifier for this handle
+ * @count: reference counter
  * @mode: current mode of this fid (enum?)
  * @qid: the &p9_qid server identifier this handle points to
  * @iounit: the server reported maximum transaction size for this file
  * @uid: the numeric uid of the local user who owns this handle
  * @rdir: readdir accounting structure (allocated on demand)
  * @dlist: per-dentry fid tracking
+ * @ilist: inode list
  *
  * TODO: This needs lots of explanation.
  */
-enum fid_source {
-	FID_FROM_OTHER,
-	FID_FROM_INODE,
-	FID_FROM_DENTRY,
-};
-
 struct p9_fid {
 	struct p9_client *clnt;
 	u32 fid;

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] net/9p: client.h: clean up kernel-doc warnings
  2026-11-23  0:44 [PATCH] net/9p: client.h: clean up kernel-doc warnings Randy Dunlap
@ 2026-11-23  0:59 ` Dominique Martinet
  0 siblings, 0 replies; 2+ messages in thread
From: Dominique Martinet @ 2026-11-23  0:59 UTC (permalink / raw)
  To: Randy Dunlap
  Cc: linux-fsdevel, netdev, Aneesh Kumar K.V, Eric Van Hensbergen,
	Latchesar Ionkov, Christian Schoenebeck, v9fs

Randy Dunlap wrote on Sun, Nov 22, 2026 at 04:44:25PM -0800:
> Repair all kernel-doc warnings:
> 
> Warning: include/net/9p/client.h:52 Enum value 'BeginDisconnect' not described in enum 'p9_trans_status'
> Warning: include/net/9p/client.h:90 struct member 'refcount' not described in 'p9_req_t'
> Warning: include/net/9p/client.h:132 struct member 'fcall_cache' not described in 'p9_client'
> Warning: include/net/9p/client.h:132 struct member 'trans_opts' not described in 'p9_client'
> Warning: include/net/9p/client.h:147 expecting prototype for struct p9_fd_opts. Prototype was for struct p9_client_opts instead
> Warning: include/net/9p/client.h:243 enum fid_source { FID_FROM_OTHER, FID_FROM_INODE, FID_FROM_DENTRY, }; error: Cannot parse struct or union!
> 
> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>

Thanks, picked up!

-- 
Dominique

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-11-23  1:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-23  0:44 [PATCH] net/9p: client.h: clean up kernel-doc warnings Randy Dunlap
2026-11-23  0:59 ` Dominique Martinet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox