* [PATCH] nvme: add __exit annotation
@ 2018-12-10 23:24 Chengguang Xu
2018-12-11 10:52 ` Sagi Grimberg
2018-12-12 8:37 ` Christoph Hellwig
0 siblings, 2 replies; 3+ messages in thread
From: Chengguang Xu @ 2018-12-10 23:24 UTC (permalink / raw)
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(-)
diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c
index 962012135b62..e63a445f18b6 100644
--- a/drivers/nvme/host/core.c
+++ b/drivers/nvme/host/core.c
@@ -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);
diff --git a/drivers/nvme/host/nvme.h b/drivers/nvme/host/nvme.h
index 081cbdcce880..e6b4856b25fd 100644
--- a/drivers/nvme/host/nvme.h
+++ b/drivers/nvme/host/nvme.h
@@ -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 */
--
2.17.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] nvme: add __exit annotation
2018-12-10 23:24 [PATCH] nvme: add __exit annotation Chengguang Xu
@ 2018-12-11 10:52 ` Sagi Grimberg
2018-12-12 8:37 ` Christoph Hellwig
1 sibling, 0 replies; 3+ messages in thread
From: Sagi Grimberg @ 2018-12-11 10:52 UTC (permalink / raw)
Reviewed-by: Sagi Grimberg <sagi at grimberg.me>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] nvme: add __exit annotation
2018-12-10 23:24 [PATCH] nvme: add __exit annotation Chengguang Xu
2018-12-11 10:52 ` Sagi Grimberg
@ 2018-12-12 8:37 ` Christoph Hellwig
1 sibling, 0 replies; 3+ messages in thread
From: Christoph Hellwig @ 2018-12-12 8:37 UTC (permalink / raw)
Thanks,
applied to nvme-4.21.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-12-12 8:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-10 23:24 [PATCH] nvme: add __exit annotation Chengguang Xu
2018-12-11 10:52 ` Sagi Grimberg
2018-12-12 8:37 ` Christoph Hellwig
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).