aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZiyang Xuan <[email protected]>2023-08-14 16:30:00 +0800
committerJakub Kicinski <[email protected]>2023-08-17 19:11:10 -0700
commitb2f8323364abf1b6fcd828851ea8be2f757c052a (patch)
tree69d232eccf3762869d27890293b6c8f11dc515aa
parentf54a2a132a9d76c0e31fd1d5f569e84682563e54 (diff)
tun: add __exit annotations to module exit func tun_cleanup()
Add missing __exit annotations to module exit func tun_cleanup(). Signed-off-by: Ziyang Xuan <[email protected]> Reviewed-by: Leon Romanovsky <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
-rw-r--r--drivers/net/tun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/tun.c b/drivers/net/tun.c
index d4bd76297a2a..89ab9efe522c 100644
--- a/drivers/net/tun.c
+++ b/drivers/net/tun.c
@@ -3743,7 +3743,7 @@ err_linkops:
return ret;
}
-static void tun_cleanup(void)
+static void __exit tun_cleanup(void)
{
misc_deregister(&tun_miscdev);
rtnl_link_unregister(&tun_link_ops);