提交 24306049 编写于 作者: M Maciej Żenczykowski 提交者: Zheng Zengkai

net: ipvtap - add __init/__exit annotations to module init/exit funcs

stable inclusion
from stable-v5.10.140
commit f82a6b85e0ae5f57f6b8dd5cc3a00650de0b6bcf
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I63FTT

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=f82a6b85e0ae5f57f6b8dd5cc3a00650de0b6bcf

--------------------------------

[ Upstream commit 4b2e3a17 ]

Looks to have been left out in an oversight.

Cc: Mahesh Bandewar <maheshb@google.com>
Cc: Sainath Grandhi <sainath.grandhi@intel.com>
Fixes: 235a9d89 ('ipvtap: IP-VLAN based tap driver')
Signed-off-by: NMaciej Żenczykowski <maze@google.com>
Link: https://lore.kernel.org/r/20220821130808.12143-1-zenczykowski@gmail.comSigned-off-by: NPaolo Abeni <pabeni@redhat.com>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Reviewed-by: NWei Li <liwei391@huawei.com>
上级 cf3ee687
...@@ -194,7 +194,7 @@ static struct notifier_block ipvtap_notifier_block __read_mostly = { ...@@ -194,7 +194,7 @@ static struct notifier_block ipvtap_notifier_block __read_mostly = {
.notifier_call = ipvtap_device_event, .notifier_call = ipvtap_device_event,
}; };
static int ipvtap_init(void) static int __init ipvtap_init(void)
{ {
int err; int err;
...@@ -228,7 +228,7 @@ static int ipvtap_init(void) ...@@ -228,7 +228,7 @@ static int ipvtap_init(void)
} }
module_init(ipvtap_init); module_init(ipvtap_init);
static void ipvtap_exit(void) static void __exit ipvtap_exit(void)
{ {
rtnl_link_unregister(&ipvtap_link_ops); rtnl_link_unregister(&ipvtap_link_ops);
unregister_netdevice_notifier(&ipvtap_notifier_block); unregister_netdevice_notifier(&ipvtap_notifier_block);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册