diff mbox series

[-next] lib: Fix some kernel-doc comments

Message ID 20221107062623.6709-1-yang.lee@linux.alibaba.com (mailing list archive)
State Accepted
Commit 8e18be7610aebea50e9327c11afcd5eeaaa06644
Headers show
Series [-next] lib: Fix some kernel-doc comments | expand

Checks

Context Check Description
netdev/tree_selection success Not a local patch

Commit Message

Yang Li Nov. 7, 2022, 6:26 a.m. UTC
Make the description of @policy to @p in nla_policy_len()
to clear the below warnings:

lib/nlattr.c:660: warning: Function parameter or member 'p' not described in 'nla_policy_len'
lib/nlattr.c:660: warning: Excess function parameter 'policy' description in 'nla_policy_len'

Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2736
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
---
 lib/nlattr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

patchwork-bot+netdevbpf@kernel.org Nov. 8, 2022, 11:10 p.m. UTC | #1
Hello:

This patch was applied to netdev/net-next.git (master)
by Jakub Kicinski <kuba@kernel.org>:

On Mon,  7 Nov 2022 14:26:23 +0800 you wrote:
> Make the description of @policy to @p in nla_policy_len()
> to clear the below warnings:
> 
> lib/nlattr.c:660: warning: Function parameter or member 'p' not described in 'nla_policy_len'
> lib/nlattr.c:660: warning: Excess function parameter 'policy' description in 'nla_policy_len'
> 
> Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2736
> Reported-by: Abaci Robot <abaci@linux.alibaba.com>
> Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
> 
> [...]

Here is the summary with links:
  - [-next] lib: Fix some kernel-doc comments
    https://git.kernel.org/netdev/net-next/c/8e18be7610ae

You are awesome, thank you!
diff mbox series

Patch

diff --git a/lib/nlattr.c b/lib/nlattr.c
index b67a53e29b8f..9055e8b4d144 100644
--- a/lib/nlattr.c
+++ b/lib/nlattr.c
@@ -646,7 +646,7 @@  EXPORT_SYMBOL(__nla_validate);
 
 /**
  * nla_policy_len - Determine the max. length of a policy
- * @policy: policy to use
+ * @p: policy to use
  * @n: number of policies
  *
  * Determines the max. length of the policy.  It is currently used