nvme: add __exit annotation
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
@@ -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
@@ -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
Sagi Grimberg
maintainerPATCH 1/1 nvme: add __exit annotation
Reviewed-by Sagi Grimberg <sagi at grimberg.me>
PATCH 1/1 nvme: add __exit annotation
In reply to Chengguang XuThanks,
applied to nvme-4.21.