Commit 8eb5d89f authored by Chengguang Xu's avatar Chengguang Xu Committed by Christoph Hellwig
Browse files

nvme: add __exit annotation



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

Signed-off-by: default avatarChengguang Xu <cgxu519@gmx.com>
Reviewed-by: default avatarSagi Grimberg <sagi@grimberg.me>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent 3f2304f8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
+1 −1
Original line number Diff line number Diff line
@@ -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 */