From: Chengguang Xu Date: Mon, 10 Dec 2018 23:24:34 +0000 (+0800) Subject: nvme: add __exit annotation X-Git-Tag: v5.0-rc1~52^2~57^2~19 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8eb5d89f483141dd076529bf5f6aa235b425886e;p=thirdparty%2Flinux.git nvme: add __exit annotation Add __exit annotation to cleanup helper which is only called once in the module. Signed-off-by: Chengguang Xu Reviewed-by: Sagi Grimberg Signed-off-by: Christoph Hellwig --- diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c index c71e879821ada..3043cedb24e17 100644 --- a/drivers/nvme/host/core.c +++ b/drivers/nvme/host/core.c @@ -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); diff --git a/drivers/nvme/host/nvme.h b/drivers/nvme/host/nvme.h index e20e737ac10c7..c78a9dc7fdcf6 100644 --- a/drivers/nvme/host/nvme.h +++ b/drivers/nvme/host/nvme.h @@ -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 */