diff options
author | Ziyang Xuan <william.xuanziyang@huawei.com> | 2023-08-14 10:30:00 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-08-18 04:11:10 +0200 |
commit | b2f8323364abf1b6fcd828851ea8be2f757c052a (patch) | |
tree | 69d232eccf3762869d27890293b6c8f11dc515aa /drivers/net/tun.c | |
parent | Merge tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf... (diff) | |
download | linux-b2f8323364abf1b6fcd828851ea8be2f757c052a.tar.xz linux-b2f8323364abf1b6fcd828851ea8be2f757c052a.zip |
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 <william.xuanziyang@huawei.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Link: https://lore.kernel.org/r/20230814083000.3893589-1-william.xuanziyang@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to '')
-rw-r--r-- | drivers/net/tun.c | 2 |
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); |