Enzo Matsumiya f6eec4
From: David Howells <dhowells@redhat.com>
Enzo Matsumiya f6eec4
Date: Mon, 20 Sep 2021 13:14:15 +0100
Enzo Matsumiya f6eec4
Subject: [PATCH] cifs: Deal with some warnings from W=1
Enzo Matsumiya f6eec4
Git-commit: 03ab9cb982b622239cc2542ce7617b98a9ea159e
Enzo Matsumiya f6eec4
Patch-mainline: v5.15-rc3
Enzo Matsumiya f6eec4
References: bsc#1192606
Enzo Matsumiya f6eec4
Enzo Matsumiya f6eec4
Deal with some warnings generated from make W=1:
Enzo Matsumiya f6eec4
Enzo Matsumiya f6eec4
 (1) Add/remove/fix kerneldoc parameters descriptions.
Enzo Matsumiya f6eec4
Enzo Matsumiya f6eec4
 (2) Turn cifs' rqst_page_get_length()'s banner comment into a kerneldoc
Enzo Matsumiya f6eec4
     comment.  It should probably be prefixed with "cifs_" though.
Enzo Matsumiya f6eec4
Enzo Matsumiya f6eec4
Signed-off-by: David Howells <dhowells@redhat.com>
Enzo Matsumiya f6eec4
Signed-off-by: Steve French <stfrench@microsoft.com>
Enzo Matsumiya f6eec4
Acked-by: Enzo Matsumiya <ematsumiya@suse.de>
Enzo Matsumiya f6eec4
---
Enzo Matsumiya f6eec4
 fs/cifs/misc.c | 14 ++++++++++++--
Enzo Matsumiya f6eec4
 1 file changed, 12 insertions(+), 2 deletions(-)
Enzo Matsumiya f6eec4
Enzo Matsumiya f6eec4
diff --git a/fs/cifs/misc.c b/fs/cifs/misc.c
Enzo Matsumiya f6eec4
index 03da00eb7c04..f2916b51652a 100644
Enzo Matsumiya f6eec4
--- a/fs/cifs/misc.c
Enzo Matsumiya f6eec4
+++ b/fs/cifs/misc.c
Enzo Matsumiya f6eec4
@@ -590,6 +590,7 @@ void cifs_put_writer(struct cifsInodeInfo *cinode)
Enzo Matsumiya f6eec4
 
Enzo Matsumiya f6eec4
 /**
Enzo Matsumiya f6eec4
  * cifs_queue_oplock_break - queue the oplock break handler for cfile
Enzo Matsumiya f6eec4
+ * @cfile: The file to break the oplock on
Enzo Matsumiya f6eec4
  *
Enzo Matsumiya f6eec4
  * This function is called from the demultiplex thread when it
Enzo Matsumiya f6eec4
  * receives an oplock break for @cfile.
Enzo Matsumiya f6eec4
@@ -1065,6 +1066,9 @@ setup_aio_ctx_iter(struct cifs_aio_ctx *ctx, struct iov_iter *iter, int rw)
Enzo Matsumiya f6eec4
 
Enzo Matsumiya f6eec4
 /**
Enzo Matsumiya f6eec4
  * cifs_alloc_hash - allocate hash and hash context together
Enzo Matsumiya f6eec4
+ * @name: The name of the crypto hash algo
Enzo Matsumiya f6eec4
+ * @shash: Where to put the pointer to the hash algo
Enzo Matsumiya f6eec4
+ * @sdesc: Where to put the pointer to the hash descriptor
Enzo Matsumiya f6eec4
  *
Enzo Matsumiya f6eec4
  * The caller has to make sure @sdesc is initialized to either NULL or
Enzo Matsumiya f6eec4
  * a valid context. Both can be freed via cifs_free_hash().
Enzo Matsumiya f6eec4
@@ -1103,6 +1107,8 @@ cifs_alloc_hash(const char *name,
Enzo Matsumiya f6eec4
 
Enzo Matsumiya f6eec4
 /**
Enzo Matsumiya f6eec4
  * cifs_free_hash - free hash and hash context together
Enzo Matsumiya f6eec4
+ * @shash: Where to find the pointer to the hash algo
Enzo Matsumiya f6eec4
+ * @sdesc: Where to find the pointer to the hash descriptor
Enzo Matsumiya f6eec4
  *
Enzo Matsumiya f6eec4
  * Freeing a NULL hash or context is safe.
Enzo Matsumiya f6eec4
  */
Enzo Matsumiya f6eec4
@@ -1118,8 +1124,10 @@ cifs_free_hash(struct crypto_shash **shash, struct sdesc **sdesc)
Enzo Matsumiya f6eec4
 
Enzo Matsumiya f6eec4
 /**
Enzo Matsumiya f6eec4
  * rqst_page_get_length - obtain the length and offset for a page in smb_rqst
Enzo Matsumiya f6eec4
- * Input: rqst - a smb_rqst, page - a page index for rqst
Enzo Matsumiya f6eec4
- * Output: *len - the length for this page, *offset - the offset for this page
Enzo Matsumiya f6eec4
+ * @rqst: The request descriptor
Enzo Matsumiya f6eec4
+ * @page: The index of the page to query
Enzo Matsumiya f6eec4
+ * @len: Where to store the length for this page:
Enzo Matsumiya f6eec4
+ * @offset: Where to store the offset for this page
Enzo Matsumiya f6eec4
  */
Enzo Matsumiya f6eec4
 void rqst_page_get_length(struct smb_rqst *rqst, unsigned int page,
Enzo Matsumiya f6eec4
 				unsigned int *len, unsigned int *offset)
Enzo Matsumiya f6eec4
@@ -1152,6 +1160,8 @@ void extract_unc_hostname(const char *unc, const char **h, size_t *len)
Enzo Matsumiya f6eec4
 
Enzo Matsumiya f6eec4
 /**
Enzo Matsumiya f6eec4
  * copy_path_name - copy src path to dst, possibly truncating
Enzo Matsumiya f6eec4
+ * @dst: The destination buffer
Enzo Matsumiya f6eec4
+ * @src: The source name
Enzo Matsumiya f6eec4
  *
Enzo Matsumiya f6eec4
  * returns number of bytes written (including trailing nul)
Enzo Matsumiya f6eec4
  */
Enzo Matsumiya f6eec4
-- 
Enzo Matsumiya f6eec4
2.33.1
Enzo Matsumiya f6eec4