From: Zhengchao Shao Date: Mon, 7 Aug 2023 01:25:52 +0000 (+0800) Subject: team: add __exit modifier to team_nl_fini() X-Git-Tag: block-6.6-2023-09-08~22^2~192^2~4 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=8958ef511a01d395234638c68a77a226cf3f541f;p=linux-block.git team: add __exit modifier to team_nl_fini() team_nl_fini is only called when the module exits, so add the __exit modifier to it. Signed-off-by: Zhengchao Shao Reviewed-by: Simon Horman Reviewed-by: Hangbin Liu Reviewed-by: Jiri Pirko Link: https://lore.kernel.org/r/20230807012556.3146071-2-shaozhengchao@huawei.com Signed-off-by: Jakub Kicinski --- 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); }