lkml.org 
[lkml]   [2022]   [Sep]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.4 19/77] net: ipvtap - add __init/__exit annotations to module init/exit funcs
    Date
    From: Maciej Żenczykowski <maze@google.com>

    [ Upstream commit 4b2e3a17e9f279325712b79fb01d1493f9e3e005 ]

    Looks to have been left out in an oversight.

    Cc: Mahesh Bandewar <maheshb@google.com>
    Cc: Sainath Grandhi <sainath.grandhi@intel.com>
    Fixes: 235a9d89da97 ('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>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    drivers/net/ipvlan/ipvtap.c | 4 ++--
    1 file changed, 2 insertions(+), 2 deletions(-)

    diff --git a/drivers/net/ipvlan/ipvtap.c b/drivers/net/ipvlan/ipvtap.c
    index 1cedb634f4f7b..f01078b2581ce 100644
    --- a/drivers/net/ipvlan/ipvtap.c
    +++ b/drivers/net/ipvlan/ipvtap.c
    @@ -194,7 +194,7 @@ static struct notifier_block ipvtap_notifier_block __read_mostly = {
    .notifier_call = ipvtap_device_event,
    };

    -static int ipvtap_init(void)
    +static int __init ipvtap_init(void)
    {
    int err;

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

    -static void ipvtap_exit(void)
    +static void __exit ipvtap_exit(void)
    {
    rtnl_link_unregister(&ipvtap_link_ops);
    unregister_netdevice_notifier(&ipvtap_notifier_block);
    --
    2.35.1


    \
     
     \ /
      Last update: 2022-09-02 14:37    [W:2.216 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site