diff mbox series

net: switchdev: Fixed kerneldoc warning

Message ID 1600781539-31676-1-git-send-email-tiantao6@hisilicon.com
State Accepted
Delegated to: David Miller
Headers show
Series net: switchdev: Fixed kerneldoc warning | expand

Commit Message

Tian Tao Sept. 22, 2020, 1:32 p.m. UTC
Update kernel-doc line comments to fix warnings reported by make W=1.
net/switchdev/switchdev.c:413: warning: Function parameter or
member 'extack' not described in 'call_switchdev_notifiers'

Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
---
 net/switchdev/switchdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Ivan Vecera Sept. 22, 2020, 1:57 p.m. UTC | #1
On Tue, 22 Sep 2020 21:32:19 +0800
Tian Tao <tiantao6@hisilicon.com> wrote:

> Update kernel-doc line comments to fix warnings reported by make W=1.
> net/switchdev/switchdev.c:413: warning: Function parameter or
> member 'extack' not described in 'call_switchdev_notifiers'
> 
> Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
> ---
>  net/switchdev/switchdev.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/net/switchdev/switchdev.c b/net/switchdev/switchdev.c
> index 865f3e0..23d8685 100644
> --- a/net/switchdev/switchdev.c
> +++ b/net/switchdev/switchdev.c
> @@ -404,7 +404,7 @@ EXPORT_SYMBOL_GPL(unregister_switchdev_notifier);
>   *	@val: value passed unmodified to notifier function
>   *	@dev: port device
>   *	@info: notifier information data
> - *
> + *	@extack: netlink extended ack
>   *	Call all network notifier blocks.
>   */
>  int call_switchdev_notifiers(unsigned long val, struct net_device *dev,

Acked-by: Ivan Vecera <ivecera@redhat.com>
David Miller Sept. 24, 2020, 12:47 a.m. UTC | #2
From: Tian Tao <tiantao6@hisilicon.com>
Date: Tue, 22 Sep 2020 21:32:19 +0800

> Update kernel-doc line comments to fix warnings reported by make W=1.
> net/switchdev/switchdev.c:413: warning: Function parameter or
> member 'extack' not described in 'call_switchdev_notifiers'
> 
> Signed-off-by: Tian Tao <tiantao6@hisilicon.com>

Applied.
diff mbox series

Patch

diff --git a/net/switchdev/switchdev.c b/net/switchdev/switchdev.c
index 865f3e0..23d8685 100644
--- a/net/switchdev/switchdev.c
+++ b/net/switchdev/switchdev.c
@@ -404,7 +404,7 @@  EXPORT_SYMBOL_GPL(unregister_switchdev_notifier);
  *	@val: value passed unmodified to notifier function
  *	@dev: port device
  *	@info: notifier information data
- *
+ *	@extack: netlink extended ack
  *	Call all network notifier blocks.
  */
 int call_switchdev_notifiers(unsigned long val, struct net_device *dev,