[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ZNBZO1Bu+Kb1tFyX@Laptop-X1>
Date: Mon, 7 Aug 2023 10:38:51 +0800
From: Hangbin Liu <liuhangbin@...il.com>
To: Zhengchao Shao <shaozhengchao@...wei.com>
Cc: netdev@...r.kernel.org, davem@...emloft.net, edumazet@...gle.com,
kuba@...nel.org, pabeni@...hat.com, jiri@...nulli.us,
weiyongjun1@...wei.com, yuehaibing@...wei.com
Subject: Re: [PATCH net-next] team: add __exit modifier to team_nl_fini()
On Fri, Aug 04, 2023 at 07:35:57PM +0800, Zhengchao Shao wrote:
> team_nl_fini is only called when the module exits, so add the __exit
> modifier to it.
>
> Signed-off-by: Zhengchao Shao <shaozhengchao@...wei.com>
> ---
> drivers/net/team/team.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/net/team/team.c b/drivers/net/team/team.c
> index bc50fc3f6913..e4fe70a71b40 100644
> --- a/drivers/net/team/team.c
> +++ b/drivers/net/team/team.c
> @@ -2892,7 +2892,7 @@ static int __init team_nl_init(void)
> return genl_register_family(&team_nl_family);
> }
>
> -static void team_nl_fini(void)
> +static void __exit team_nl_fini(void)
> {
> genl_unregister_family(&team_nl_family);
> }
> --
> 2.34.1
Reviewed-by: Hangbin Liu <liuhangbin@...il.com>
Powered by blists - more mailing lists