Skip to contentSkip to conversation

nvme: add __exit annotation

PATCH New Chengguang Xu 3 participants 3 messages Dec 10, 2018 – Dec 12, 2018 NVMe

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nvme: add __exit annotation

Add __exit annotation to cleanup helper which is only called once in the module.

Signed-off-by Chengguang Xu <cgxu519 at gmx.com>
---
 drivers/nvme/host/core.c | 2 +-
 drivers/nvme/host/nvme.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/nvme/host/core.c +1 -1
index 962012135b62..e63a445f18b6 100644
@@ -3746,7 +3746,7 @@ int __init nvme_core_init(void)
 	return result;
 }
 
-void nvme_core_exit(void)
+void __exit nvme_core_exit(void)
 {
 	ida_destroy(&nvme_subsystems_ida);
 	class_destroy(nvme_subsys_class);
drivers/nvme/host/nvme.h +1 -1
index 081cbdcce880..e6b4856b25fd 100644
@@ -572,6 +572,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 */
Signature · 1 line
2.17.2
maintainer
#1 lore raw

PATCH 1/1 nvme: add __exit annotation

Reviewed-by Sagi Grimberg <sagi at grimberg.me>