Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <shaozhengchao@huawei.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Reviewed-by: Hangbin Liu <liuhangbin@gmail.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Link: https://lore.kernel.org/r/20230807012556.3146071-2-shaozhengchao@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Zhengchao Shao and committed by
Jakub Kicinski
8958ef51 6f9728dd

+1 -1
+1 -1
drivers/net/team/team.c
··· 2892 2892 return genl_register_family(&team_nl_family); 2893 2893 } 2894 2894 2895 - static void team_nl_fini(void) 2895 + static void __exit team_nl_fini(void) 2896 2896 { 2897 2897 genl_unregister_family(&team_nl_family); 2898 2898 }