Skip to content

Commit

Permalink
nvme: mark nvme_core_init and nvme_core_exit static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christoph Hellwig committed May 1, 2019
1 parent 8110154 commit 893a74b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions drivers/nvme/host/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -3956,7 +3956,7 @@ int __init nvme_core_init(void)
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);
Expand Down
3 changes: 0 additions & 3 deletions drivers/nvme/host/nvme.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit 893a74b

Please sign in to comment.