nvme: mark nvme_core_init and nvme_core_exit static
authorChristoph Hellwig <hch@lst.de>
Tue, 30 Apr 2019 15:37:43 +0000 (11:37 -0400)
committerChristoph Hellwig <hch@lst.de>
Wed, 1 May 2019 13:18:47 +0000 (09:18 -0400)
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
drivers/nvme/host/core.c
drivers/nvme/host/nvme.h

index e970c5adee282a74495c9f40b2a664faeaffd752..cd16d98d1f1ae07f9f13d4bc8797f653998935c3 100644 (file)
@@ -3904,7 +3904,7 @@ static inline void _nvme_check_size(void)
 }
 
 
-int __init nvme_core_init(void)
+static int __init nvme_core_init(void)
 {
        int result = -ENOMEM;
 
@@ -3956,7 +3956,7 @@ out:
        return result;
 }
 
-void __exit nvme_core_exit(void)
+static void __exit nvme_core_exit(void)
 {
        ida_destroy(&nvme_subsystems_ida);
        class_destroy(nvme_subsys_class);
index 527d645450230d40780062356366d025dd5ca500..5ee75b5ff83f416ca1d0c1e242a7140241a47800 100644 (file)
@@ -577,7 +577,4 @@ static inline struct nvme_ns *nvme_get_ns_from_dev(struct device *dev)
        return dev_to_disk(dev)->private_data;
 }
 
-int __init nvme_core_init(void);
-void __exit nvme_core_exit(void);
-
 #endif /* _NVME_H */