From: Ziyang Xuan Date: Mon, 14 Aug 2023 08:30:00 +0000 (+0800) Subject: tun: add __exit annotations to module exit func tun_cleanup() X-Git-Tag: v6.6.17~4098^2~95 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b2f8323364abf1b6fcd828851ea8be2f757c052a;p=platform%2Fkernel%2Flinux-rpi.git 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 Reviewed-by: Leon Romanovsky Link: https://lore.kernel.org/r/20230814083000.3893589-1-william.xuanziyang@huawei.com Signed-off-by: Jakub Kicinski --- diff --git a/drivers/net/tun.c b/drivers/net/tun.c index d4bd762..89ab9ef 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);