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 c71e879821adaaf2e2bd94fe2a222573ea690e71..3043cedb24e175b5a0ac1fbc44b98e5005a30039 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 e20e737ac10c78ba54d1c71c11f635f868243e3a..c78a9dc7fdcf63e30e6418918e7aa9a42591ff4f 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 */