OSDN Git Service

aoe: add __exit annotation
authorChengguang Xu <cgxu519@gmx.com>
Sun, 16 Dec 2018 06:08:18 +0000 (14:08 +0800)
committerJens Axboe <axboe@kernel.dk>
Sun, 16 Dec 2018 16:01:38 +0000 (09:01 -0700)
Add __exit annotation to cleanup helper which
is only called once in the module.

Signed-off-by: Chengguang Xu <cgxu519@gmx.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/aoe/aoemain.c

index 2514820..1e4e297 100644 (file)
@@ -24,7 +24,7 @@ static void discover_timer(struct timer_list *t)
        aoecmd_cfg(0xffff, 0xff);
 }
 
-static void
+static void __exit
 aoe_exit(void)
 {
        del_timer_sync(&timer);