Skip to contentSkip to conversation

fscache: fix misdocumented parameter

PATCH In review Khalid Masum 2 participants 2 messages Aug 18, 2022 Filesystems netfs library

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 fscache: fix misdocumented parameter

This patch fixes two warnings generated by make docs. The functions fscache_use_cookie and fscache_unuse_cookie, both have a parameter named cookie. But they are documented with the name "object" with unclear description. Which generates the warning when creating docs.

This commit will replace the currently misdocumented parameter names with the correct ones while adding proper descriptions.

---
Changes since v1:
- Update commit message.
- Link: https://lore.kernel.org/lkml/[email protected]/

 include/linux/fscache.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/linux/fscache.h +2 -2
index 720874e6ee94..36e5dd84cf59 100644
@@ -258,7 +258,7 @@ struct fscache_cookie *fscache_acquire_cookie(struct fscache_volume *volume,
 
 /**
  * fscache_use_cookie - Request usage of cookie attached to an object
- * @object: Object description
+ * @cookie: The cookie representing the cache object
  * @will_modify: If cache is expected to be modified locally
  *
  * Request usage of the cookie attached to an object.  The caller should tell
@@ -274,7 +274,7 @@ static inline void fscache_use_cookie(struct fscache_cookie *cookie,
 
 /**
  * fscache_unuse_cookie - Cease usage of cookie attached to an object
- * @object: Object description
+ * @cookie: The cookie representing the cache object
  * @aux_data: Updated auxiliary data (or NULL)
  * @object_size: Revised size of the object (or NULL)
  *
Signature · 1 line
2.37.1
Reviewed-by on v2 1/1
#1 lore raw
Quoted 10 lines · Khalid Masum

This patch fixes two warnings generated by make docs. The functions fscache_use_cookie and fscache_unuse_cookie, both have a parameter named cookie. But they are documented with the name "object" with unclear description. Which generates the warning when creating docs.

This commit will replace the currently misdocumented parameter names with the correct ones while adding proper descriptions.

LGTM.

Quoted 30 lines

---
Changes since v1:
- Update commit message.
- Link: https://lore.kernel.org/lkml/[email protected]/

 include/linux/fscache.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/linux/fscache.h +2 -2
index 720874e6ee94..36e5dd84cf59 100644
@@ -258,7 +258,7 @@ struct fscache_cookie *fscache_acquire_cookie(struct fscache_volume *volume,
 
 /**
  * fscache_use_cookie - Request usage of cookie attached to an object
- * @object: Object description
+ * @cookie: The cookie representing the cache object
  * @will_modify: If cache is expected to be modified locally
  *
  * Request usage of the cookie attached to an object.  The caller should tell
@@ -274,7 +274,7 @@ static inline void fscache_use_cookie(struct fscache_cookie *cookie,
 
 /**
  * fscache_unuse_cookie - Cease usage of cookie attached to an object
- * @object: Object description
+ * @cookie: The cookie representing the cache object
  * @aux_data: Updated auxiliary data (or NULL)
  * @object_size: Revised size of the object (or NULL)
  *
Signature · 2 lines
Thanks,
Jingbo