summaryrefslogtreecommitdiff
path: root/drivers/block/rbd.c
diff options
context:
space:
mode:
authorChengguang Xu <cgxu519@gmx.com>2018-08-12 18:06:54 +0300
committerIlya Dryomov <idryomov@gmail.com>2018-10-22 11:28:19 +0300
commit7d8dc53414c5770afb8b83db096ecab0cd53ec93 (patch)
tree105d0c749528ef03022f08fd42eccd7f9b311a6c /drivers/block/rbd.c
parent3167893ae60e847b5a44d582fedb544cd0ae7ef5 (diff)
downloadlinux-7d8dc53414c5770afb8b83db096ecab0cd53ec93.tar.xz
rbd: add __init/__exit annotations
Add __init/__exit annotation to init/cleanup helpers which are only called once in the module. Signed-off-by: Chengguang Xu <cgxu519@gmx.com> Reviewed-by: Ilya Dryomov <idryomov@gmail.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'drivers/block/rbd.c')
-rw-r--r--drivers/block/rbd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c
index 73ed5f3a862d..f2fe692dda40 100644
--- a/drivers/block/rbd.c
+++ b/drivers/block/rbd.c
@@ -6067,7 +6067,7 @@ static ssize_t rbd_remove_single_major(struct bus_type *bus,
* create control files in sysfs
* /sys/bus/rbd/...
*/
-static int rbd_sysfs_init(void)
+static int __init rbd_sysfs_init(void)
{
int ret;
@@ -6082,13 +6082,13 @@ static int rbd_sysfs_init(void)
return ret;
}
-static void rbd_sysfs_cleanup(void)
+static void __exit rbd_sysfs_cleanup(void)
{
bus_unregister(&rbd_bus_type);
device_unregister(&rbd_root_dev);
}
-static int rbd_slab_init(void)
+static int __init rbd_slab_init(void)
{
rbd_assert(!rbd_img_request_cache);
rbd_img_request_cache = KMEM_CACHE(rbd_img_request, 0);