nvme: add __exit annotation
authorChengguang Xu <cgxu519@gmx.com>
Mon, 10 Dec 2018 23:24:34 +0000 (07:24 +0800)
committerChristoph Hellwig <hch@lst.de>
Thu, 13 Dec 2018 08:58:59 +0000 (09:58 +0100)
Add __exit annotation to cleanup helper which is only
called once in the module.

Signed-off-by: Chengguang Xu <cgxu519@gmx.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c
drivers/nvme/host/nvme.h

index c71e879..3043ced 100644 (file)
@@ -3802,7 +3802,7 @@ out:
        return result;
 }
 
-void nvme_core_exit(void)
+void __exit nvme_core_exit(void)
 {
        ida_destroy(&nvme_subsystems_ida);
        class_destroy(nvme_subsys_class);
index e20e737..c78a9dc 100644 (file)
@@ -565,6 +565,6 @@ static inline struct nvme_ns *nvme_get_ns_from_dev(struct device *dev)
 }
 
 int __init nvme_core_init(void);
-void nvme_core_exit(void);
+void __exit nvme_core_exit(void);
 
 #endif /* _NVME_H */