2023-11-06 06:08:00

by Randy Dunlap

[permalink] [raw]
Subject: [PATCH] ubifs: auth.c: fix kernel-doc function prototype warning

Use the correct function name in the kernel-doc comment to prevent
a kernel-doc warning:

auth.c:30: warning: expecting prototype for ubifs_node_calc_hash(). Prototype was for __ubifs_node_calc_hash() instead

Signed-off-by: Randy Dunlap <[email protected]>
Reported-by: kernel test robot <[email protected]>
Closes: lore.kernel.org/r/[email protected]
Cc: Richard Weinberger <[email protected]>
Cc: [email protected]
---
fs/ubifs/auth.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff -- a/fs/ubifs/auth.c b/fs/ubifs/auth.c
--- a/fs/ubifs/auth.c
+++ b/fs/ubifs/auth.c
@@ -18,7 +18,7 @@
#include "ubifs.h"

/**
- * ubifs_node_calc_hash - calculate the hash of a UBIFS node
+ * __ubifs_node_calc_hash - calculate the hash of a UBIFS node
* @c: UBIFS file-system description object
* @node: the node to calculate a hash for
* @hash: the returned hash


2023-11-06 06:18:46

by Zhihao Cheng

[permalink] [raw]
Subject: Re: [PATCH] ubifs: auth.c: fix kernel-doc function prototype warning

?? 2023/11/6 14:07, Randy Dunlap ะด??:
> Use the correct function name in the kernel-doc comment to prevent
> a kernel-doc warning:
>
> auth.c:30: warning: expecting prototype for ubifs_node_calc_hash(). Prototype was for __ubifs_node_calc_hash() instead
>
> Signed-off-by: Randy Dunlap <[email protected]>
> Reported-by: kernel test robot <[email protected]>
> Closes: lore.kernel.org/r/[email protected]
> Cc: Richard Weinberger <[email protected]>
> Cc: [email protected]
> ---
> fs/ubifs/auth.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
Reviewed-by: Zhihao Cheng <[email protected]>