Skip to content

Commit 4b2e3a1

Browse files
zenczykowskiPaolo Abeni
authored andcommitted
net: ipvtap - add __init/__exit annotations to module init/exit funcs
Looks to have been left out in an oversight. Cc: Mahesh Bandewar <maheshb@google.com> Cc: Sainath Grandhi <sainath.grandhi@intel.com> Fixes: 235a9d8 ('ipvtap: IP-VLAN based tap driver') Signed-off-by: Maciej Żenczykowski <maze@google.com> Link: https://lore.kernel.org/r/20220821130808.12143-1-zenczykowski@gmail.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
1 parent 5003e52 commit 4b2e3a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/ipvlan/ipvtap.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ static struct notifier_block ipvtap_notifier_block __read_mostly = {
194194
.notifier_call = ipvtap_device_event,
195195
};
196196

197-
static int ipvtap_init(void)
197+
static int __init ipvtap_init(void)
198198
{
199199
int err;
200200

@@ -228,7 +228,7 @@ static int ipvtap_init(void)
228228
}
229229
module_init(ipvtap_init);
230230

231-
static void ipvtap_exit(void)
231+
static void __exit ipvtap_exit(void)
232232
{
233233
rtnl_link_unregister(&ipvtap_link_ops);
234234
unregister_netdevice_notifier(&ipvtap_notifier_block);

0 commit comments

Comments
 (0)