diff mbox series

net: Fix documentation for unregister_netdevice_notifier_net

Message ID 20221215071551.421451-1-linmq006@gmail.com (mailing list archive)
State Superseded
Delegated to: Netdev Maintainers
Headers show
Series net: Fix documentation for unregister_netdevice_notifier_net | expand

Checks

Context Check Description
netdev/tree_selection success Guessed tree name to be net-next
netdev/fixes_present success Fixes tag not required for -next series
netdev/subject_prefix warning Target tree name not specified in the subject
netdev/cover_letter success Single patches do not need cover letters
netdev/patch_count success Link
netdev/header_inline success No static functions without inline keyword in header files
netdev/build_32bit success Errors and warnings before: 8 this patch: 8
netdev/cc_maintainers success CCed 7 of 7 maintainers
netdev/build_clang success Errors and warnings before: 1 this patch: 1
netdev/module_param success Was 0 now: 0
netdev/verify_signedoff success Signed-off-by tag matches author and committer
netdev/check_selftest success No net selftest shell script
netdev/verify_fixes success Fixes tag looks correct
netdev/build_allmodconfig_warn success Errors and warnings before: 8 this patch: 8
netdev/checkpatch success total: 0 errors, 0 warnings, 0 checks, 8 lines checked
netdev/kdoc success Errors and warnings before: 0 this patch: 0
netdev/source_inline success Was 0 now: 0

Commit Message

Miaoqian Lin Dec. 15, 2022, 7:15 a.m. UTC
unregister_netdevice_notifier_net() is used for unregister a notifier
registered by register_netdevice_notifier_net().

Fixes: a30c7b429f2d ("net: introduce per-netns netdevice notifiers")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
---
 net/core/dev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Petr Machata Dec. 15, 2022, 11:20 a.m. UTC | #1
Miaoqian Lin <linmq006@gmail.com> writes:

> unregister_netdevice_notifier_net() is used for unregister a notifier
> registered by register_netdevice_notifier_net().
>
> Fixes: a30c7b429f2d ("net: introduce per-netns netdevice notifiers")
> Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
> ---
>  net/core/dev.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/net/core/dev.c b/net/core/dev.c
> index b76fb37b381e..85c6c095a1b6 100644
> --- a/net/core/dev.c
> +++ b/net/core/dev.c
> @@ -1840,7 +1840,7 @@ EXPORT_SYMBOL(register_netdevice_notifier_net);
>   * @nb: notifier
>   *
>   * Unregister a notifier previously registered by
> - * register_netdevice_notifier(). The notifier is unlinked into the
> + * register_netdevice_notifier_net(). The notifier is unlinked into the

Since you are touching the line anyway, please also s/into/from/.
diff mbox series

Patch

diff --git a/net/core/dev.c b/net/core/dev.c
index b76fb37b381e..85c6c095a1b6 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -1840,7 +1840,7 @@  EXPORT_SYMBOL(register_netdevice_notifier_net);
  * @nb: notifier
  *
  * Unregister a notifier previously registered by
- * register_netdevice_notifier(). The notifier is unlinked into the
+ * register_netdevice_notifier_net(). The notifier is unlinked into the
  * kernel structures and may then be reused. A negative errno code
  * is returned on a failure.
  *